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: <[email protected]> |
| 2012-03-11 19:13:51 | serhiy.storchaka | link | issue11406 messages |
| 2012-03-11 19:13:51 | serhiy.storchaka | create | |
|