Work with files / Basic operations
Check if the file exists
Delete a file
File copying
File moving
Getting file properties
Get the working directory
Create a directory
Delete a directory
Delete a directory with data
Copy a directory
List of files in the directory
Combining two parts of a path
import
os
.
path
file_name =
"file.txt"
exists =
os
.
path
.
exists
(file_name)
print
(exists)