【发布时间】:2011-02-18 03:28:02
【问题描述】:
我需要为给定的目录列表找到空目录。 有些目录里面有目录。
如果内部目录也是空的,我可以说主目录是空的,否则它不是空的。
我该如何测试?
例如:
A>A1(file1),A2 this is not empty beacuse of file1
B>B1(no file) this is empty
C>C1,C2 this is empty
【问题讨论】:
-
我认为马丁的回答在这里最合适。当前接受的答案只是一个不完整的伪代码。