Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: 1.4 beta 7 crashes folder naming pattern - feature or bug? (Read 1530 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

1.4 beta 7 crashes folder naming pattern - feature or bug?

So I tried the new beta. Moving files and directories, it seems to double the string. Tried it on files that should turn up with nothing to do:

Is:
<some path>\olddirectoryname\oldfilename

Suggests:
<some path>\olddirectoryname\oldfilename\olddirectoryname\oldfilename

Rename seems unaffected.

Oh, and while I am at it: If I change a character case in a field used in the directory - like <artist> from "Iq" to "IQ" - then filenames will change, but not directorynames. Not sure if this is fb2k or Windows though.

Re: 1.4 beta 7 crashes folder naming pattern - feature or bug?

Reply #1
What do you mean by the crashing mentioned in the topic?

Are we talking about foo_fileops?

I can't reproduce any path doubling. Copying stuff to target works as it should. Using move with the naming pattern that matches my path scheme correctly shows there's nothing to do. Hitting Run button doesn't crash anything.

I can't bother Peter about issues that I can't understand.

Re: 1.4 beta 7 crashes folder naming pattern - feature or bug?

Reply #2
I have tried to move/copy some folders and no issues for me so far.
Duplicate folder directory can be created but that depends of what file name pattern is used.
Somewhere, there's someone dying in a foreign land
Meanwhile, the world is crying stupidity of man
Tell me why, tell me why

Re: 1.4 beta 7 crashes folder naming pattern - feature or bug?

Reply #3
"crashes" was an awful choice of word, mea culpa.
Trying to get down to a minimum "working" example ... choose Move, and select as "Destination folder" the drive letter where the files are already, and paste the following as "File naming pattern":

Code: [Select]
$replace($right(%path%,$sub($len(%path%),2)),%directory%\%filename_ext%,)\%directory%\%filename%

Seems I need some of that path manipulation to get things going wrong. But up to beta 6 it says nothing to do, destination matches source. beta 7 ... not quite.

Re: 1.4 beta 7 crashes folder naming pattern - feature or bug?

Reply #4
There seems to be a problem that %directory% isn't recognized. Not even by its documented %directoryname% name. You can use $directory(%path%) to achieve the same.


Re: 1.4 beta 7 crashes folder naming pattern - feature or bug?

Reply #6
Bug noted, thanks for reporting.
Microsoft Windows: We can't script here, this is bat country.

 

Re: 1.4 beta 7 crashes folder naming pattern - feature or bug?

Reply #7
New beta posted, %directoryname% works again.
Microsoft Windows: We can't script here, this is bat country.