OS functions:
getcwd – get current working directory
chdir – change current directory
listdir – print all files in current directory
makedirs – create folders (and sub folder)
mkdir – create folder (without sub folder)
stat.st_mtime – get file last modification time
stat.size – get file size
walk – get all files, folders in a folder (recursion)
getenv – get system variables (i.e. PATH)
startfile – start a process
path.isfile – check if a path is a file
path.isdir – check if a path is a directory
path.exists – check if a path exists or not
os.path.join – combine a folder name with a file name
os.path.splitext – separates file name from its extension
shutil library:
rmtree – remove folder and all of its context
psutil library:
process_iter – get all processed
datetime library:
now – get the current date and time
fromtimestamp – converts a time stamp into a date time
More topics covered:
- Task manager
- Running os command from shell
- static variables introduction
Links:
