gyng / save-in

WebExtension for saving media, links, or selections into user-defined directories
MIT License
205 stars 25 forks source link

Variables not working #22

Closed MightyDrakeC closed 6 years ago

MightyDrakeC commented 6 years ago

I'm trying to save through a Windows junction. The :filename: doesn't appear to be getting replaced.

I've tried: .\myfolder\:filename:

and what I see in \myfolder is a series of files named _filename_, _filename_(1), _filename_(2), etc

I've tried just .\myfolder\ and in my \Downloads folder I get a series of files named myfolder, myfolder(1), etc

I'm sure I'm missing something simple and obvious. Can someone point it out for me?

As a documentation suggestion, maybe you can supply some examples of what the strings should look like. I see some examples here in other issues. Dunno why it's not working for me.

Thanks

gyng commented 6 years ago

I realised the variable table is confusing right now. When it mentions filenames only, the variable is only supported in filename rewrites.

Symbolic links work for me on Windows. I haven't actually tried it with junctions on Windows. See if this works:

mklink /D Link Target
MightyDrakeC commented 6 years ago

Sorry. Nomenc;lature mistake. That was the method I used. mklink

What is the correct format in the folders box when using symlinks?

gyng commented 6 years ago
./images/a/b/:date:
images/:date:

images is a link to another directory.

MightyDrakeC commented 6 years ago

What if I want to save with its original name?

gyng commented 6 years ago

It will save the the file with the original name inside the directory images/a/b/:date: unless it matches a filename rewrite rule.

gyng commented 6 years ago

Closing due to inactivity.