Fast way to read filename from directory? - Stack Overflow

文章推薦指數: 80 %
投票人數:10人

python path. Given a local directory structure of /foo/bar , and assuming that a given path contains exactly one file (filename and content does not matter), ... fast way to get the filename of that single file (NOT the file content)?. Howarewedoing?P



請為這篇文章評分?