➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 jeremy.kloth
收信人 brian.curtin, chris.jerdonek, jeremy.kloth, jkloth, loewis, ncoghlan, pitrou, tim.golden
日期 2012-08-02.14:08:02
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <CAGvrs3K4eyYUrL6dSEJhAqJd92ypj19h6tEkGQhQMGoC3Z97dg@mail.gmail.com>
In-reply-to <1343902840.5.0.0716133241106.issue15496@psf.upfronthosting.co.za>
内容
> I wonder why it couldn't use os.listdir to find out whether the directory is empty, and os.stat to find out whether a specific file or directory still exists.

It is possible to do the same thing with just os.listdir.  The use of
the Find*File functions was chosen to eliminate duplicating the wait
function for the two different cases.  Also,  it is just less resource
and time intensive to use the Find*File API directly (no need to build
an entire list when just testing if any entries exist).
历史
日期 用户 动作 参数
2012-08-02 14:08:04jeremy.kloth修改recipients: + jeremy.kloth, loewis, ncoghlan, pitrou, tim.golden, jkloth, brian.curtin, chris.jerdonek
2012-08-02 14:08:03jeremy.kloth链接issue15496 messages
2012-08-02 14:08:02jeremy.kloth创建