midrange.com code scratchpad |
Name:
Remove Empty Directories
|
Scriptlanguage:
Plain Text
|
Tabwidth:
4
|
Date:
10/05/2021 01:42:33 pm
|
IP:
Logged
|
|
Description:
An example using the UNIX-Type APIs, and recursion.
The problem of removing directories which have no files downstream has a naturally recursive definition.
If all of a directory's child directories can be deleted, then the directory can be deleted.
|
Code:
|
|