Given a local directory structure of /foo/bar, and assuming that a given path contains exactly one file (filename and content does not matter), what is a reasonably fast way to get the filename of that single file (NOT the file content)?
Given a local directory structure of /foo/bar , and assuming that a given path
Share
1st element of
os.listdir()