You are here

[Fixed] DirectoriesMove not backing up (some) local folders

12 posts / 0 new
Last post
prapper
Offline
Last seen: 3 years 9 months ago
Developer
Joined: 2008-01-24 17:01
[Fixed] DirectoriesMove not backing up (some) local folders

I need to move a folder in and out of %APPDATA% so I have this in the launcher INI:

[DirectoriesMove]
folder=%APPDATA%\folder

The folder is moving fine but if there's a local one present it isn't backed up.

If I debug the launcher I'm getting the ${DebugMsg} "Matching directories for $1 discovered, deleting $0" message instead of ${DebugMsg} "Backing up $4 to $4.BackupBy$AppID" message that I would expect.

I also used this with EAC:

[DirectoriesMove]
EAC=%APPDATA%\EAC
AccurateRip=%APPDATA%\AccurateRip

On checking, I'm finding that the local AccurateRip folder is backed up but the EAC one isn't.

Any ideas?

prapper
Offline
Last seen: 3 years 9 months ago
Developer
Joined: 2008-01-24 17:01
After a little more testing,

After a little more testing, the first folder listed under [DirectoriesMove] will not back up the local version.

[DirectoriesMove]
dir-01=%APPDATA%\dir-01

Local dir-01 is not backed up. Instead, it's removed from the system (back to Data) on exit.

[DirectoriesMove]
dir-01=%APPDATA%\dir-01
dir-02=%APPDATA%\dir-02
dir-03=%APPDATA%\dir-03
dir-04=%APPDATA%\dir-04
dir-05=%APPDATA%\dir-05

Same here but dir-02 to dir-05 are all ok.

[DirectoriesMove]
dir-03=%APPDATA%\dir-03
dir-01=%APPDATA%\dir-01
dir-02=%APPDATA%\dir-02
dir-04=%APPDATA%\dir-04
dir-05=%APPDATA%\dir-05

dir-03 is not backed but dirs 01, 02, 04 & 05 are all ok.

This is broken in the current release of PAL 2.1.1 and has been since 2.1 Beta 2.

XP SP3 (Admin)

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Can you upload it?

Can you send your launcher.ini? File upload if possible (not pastebin).

Previously known as kAlug.

prapper
Offline
Last seen: 3 years 9 months ago
Developer
Joined: 2008-01-24 17:01
You can test with any

You can test with any launcher, I used AntRenamer Portable. Are you not seeing a problem?

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Nope

Just tested it with TortoiseHg Portable. Perhaps because it uses the 2.2 branch? I can't see any relevant changes.

Previously known as kAlug.

prapper
Offline
Last seen: 3 years 9 months ago
Developer
Joined: 2008-01-24 17:01
TortoiseHg Portable works

TortoiseHg Portable works fine. The only difference between AntRenamer Portable and TortoiseHg Portable is the [FilesMove] section so add this to the TortoiseHg Portable launcher:

[FilesMove]
test.txt=%PAL:AppDir%

Make sure %APPDATA%\TortoiseHg exists then run TortoiseHg Portable and watch what happens to that local folder.

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Internal state

Hmm... it seems the internal state got mixed: using test.txt=%AppData% doesn't trigger the issue. Working on it.
EDIT: fixed in the repo.

Previously known as kAlug.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
Doesn't affect any official apps

I whipped up a script to check all our officially released apps and found that none of them is affected by this issue, which simplifies things somewhat. I can give you the script (note: it depends on the tip of the PADT repository) for your own checks, if you like.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

prapper
Offline
Last seen: 3 years 9 months ago
Developer
Joined: 2008-01-24 17:01
Thanks for the offer, I'll

Thanks for the offer, I'll pass though Smile

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 40 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed?

Chris or kAlug, is this fixed in PAL 2.1.2? If not, can we get it fixed in 2.2?

Sometimes, the impossible can become possible, if you're awesome!

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Yes

In fact, that's the only reason for the release of PAL 2.1.2.

Previously known as kAlug.

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 40 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 2.1.2

Ok, thanks. I've marked it as fixed.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments