smugcli icon indicating copy to clipboard operation
smugcli copied to clipboard

Problems with Albums that have a "/" in the name

Open rgusick opened this issue 7 years ago • 1 comments

I have the following Folder containing Albums on my SmugMug account:

$ smugcli.py ls '2009/04'
Will's Basketball Project
Washington D.C.
5/6 Lax vs Scarsdale
Freshman Lacrosse vs Mahopac
Freshman Lacrosse vs Suffern
Doug warming up

When I try to list the contents of the "5/6 Lax vs Scarsdale" album, I don't see a way to escape the slash:

$ smugcli.py ls '2009/04/5/6 Lax vs Scarsdale'
"5" not found in "/2009/04".
$ smugcli.py ls '2009/04/5\/6 Lax vs Scarsdale'
"5\" not found in "/2009/04".
$ smugcli.py ls "2009/04/5\/6 Lax vs Scarsdale"
"5\" not found in "/2009/04".
$ smugcli.py ls "2009/04/5\\/6 Lax vs Scarsdale"
"5\" not found in "/2009/04".

Any suggestions outside renaming my albums (which is most likely what I am going to end up doing).

rgusick avatar Dec 15 '18 14:12 rgusick

Sorry for the late reply.

If you are on Windows, you can use '/' in file or folder names without problems. If you are on Linux or MacOS, you can use '' in names. Doing the opposite however is simply not supported by operating systems. You cannot have filenames containing '' on Windows or containing '/' on Linux or MacOS.

Given these limitations, what are you hoping to achieve? Even with some escaping mechanism in SmugCLI, it would still be impossible for you to upload or sync files containing '/' on Linux or MacOS.

graveljp avatar Dec 07 '20 02:12 graveljp