os.path – is een module om de pad te manipuleren.
exists(path) # Test for existence
isabs(path) # Return 1 if path is an absolute pathname
isfile(path) # Return 1 if path is a regular file
isdir(path) # Return 1 if path is a directory
islink(path) # Return 1 if path is a symlink
ismount(path) # Return 1 if path is a mountpoint
getatime(path) # Get access time
getmtime(path) # Get modification time
getsize(path) # Get file size in bytes
samefile(path1,path2) # Return 1 if path1 and path2 are the same file
sameopenfile(f1,f2) # Return 1 if file objects f1 and f2 are same file.
Add A Comment
You must be logged in to post a comment.
