Context: Synology NAS Linux accessed by Windows 7 using a
Problem: Windows refuses the creation of a directory which name begins with an "@" (at-sign / at sign).
Unfortunately, I have to create a directory named @eaDir
(hi, Synology Photo Station users!) within a Python script that I want to execute on Windows.
The following line raises an error when executed from an "cmd" console.
os.mkdir("@eaDir")
FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable (cannot find specified file)
The same error occurs with mkdir in the DOS shell or when giving the final directory name "@eaDir" after creating a new directory from Windows Explorer...
Does anyone have an idea about how to achieve the creation of directory with an @ at sign at the beginning in a Python script executed on Windows?
Note: thanks to all contributors who helped in identifying the root cause of the error.