#1 2009-03-15 20:37

krtek
Senior Member
From: Łódź (Poland)
Registered: 2008-02-21
Posts: 262

WideRenameFile does not create folder if it doesn't exist

It might be intended but I've noticed that WideRenameFile function does not create folder if it doesn't exist. It failes to rename/move file then. But if folder exists, it will move the file.
This behaviour is a bit different from what normal renaming operation does.


Regular Expressions are not as hard to understand as you may think. Check ReNamer's manual or nice Regular Expressions tutorial for more info and start to use full power of applications that use them (like ReNamer, Mp3Tag and so on).

Offline

#2 2009-03-15 21:23

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,379

Re: WideRenameFile does not create folder if it doesn't exist

That is correct.

Windows does not automatically create folders when you are moving/renaming files to not existing folders. User have to create those folders prior to moving the file. In case of main "Rename" action, I actually force all directories to exist prior to renaming.

Offline

#3 2009-03-15 22:18

krtek
Senior Member
From: Łódź (Poland)
Registered: 2008-02-21
Posts: 262

Re: WideRenameFile does not create folder if it doesn't exist

Thanks for explanation.


Regular Expressions are not as hard to understand as you may think. Check ReNamer's manual or nice Regular Expressions tutorial for more info and start to use full power of applications that use them (like ReNamer, Mp3Tag and so on).

Offline

Board footer

Powered by FluxBB