Python File Path Name

Viewed 148

What is the difference between "./file_name", "../file_name" and "file_name"when used as the file path in Python?

For example, if you want to save in the file_path, is it correct that "../file_name" will save file_name inside the current directory? And "./file_name" will save it to the desktop? It's really confusing.

2 Answers
Related