> os.path.isdir('/usr/bin') # Check if path is a directory > os.path.isfile('/usr/bin') # Check if path is a file > os.path.exists('/usr/bin') # Check if the path exists (as a file/directory/Symlink)
0 Comments
Leave a Reply. |
> os.path.isdir('/usr/bin') # Check if path is a directory > os.path.isfile('/usr/bin') # Check if path is a file > os.path.exists('/usr/bin') # Check if the path exists (as a file/directory/Symlink)
0 Comments
Leave a Reply. |