我需要为给定的目录列表找到空目录.有些目录里面有目录.
如果内部目录也是空的,我可以说主目录是空的,否则它不是空的.
我该怎么测试呢?
例如:
A>A1(file1),A2 this is not empty beacuse of file1 B>B1(no file) this is empty C>C1,C2 this is empty
unix directory bash
bash ×1
directory ×1
unix ×1