Message155407
> On Unix, doing os.stat
> on the directory, then looking on st_nlink, will tell you whether
> the directory is empty (st_nlink is 2 on an empty directory).
Directory with st_nlink==2 can contains any number of non-directory files. And one subdirectory if this directory is root. |
|
Date |
User |
Action |
Args |
2012-03-11 19:13:51 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, loewis, terry.reedy, pitrou, giampaolo.rodola, eric.araujo, Trundle, brian.curtin, torsten, nvetoshkin, neologix, socketpair |
2012-03-11 19:13:51 | serhiy.storchaka | set | messageid: <1331493231.74.0.237985226625.issue11406@psf.upfronthosting.co.za> |
2012-03-11 19:13:51 | serhiy.storchaka | link | issue11406 messages |
2012-03-11 19:13:51 | serhiy.storchaka | create | |
|