PortableApps.com Carbide driveThe PortableApps.com Carbide is here! The Safest, Most Secure USB Flash Drive on Earth.
Military-grade hardware-encryption, water/shock/dust/tamper-resistant, 5 years of commercial USB antivirus, 5 year warranty, personalized, and PortableApps.com! 8GB, 16GB and 32GB starting at $89.95! Learn more and buy today!
Also: PA.c Companion (fast, affordable, colorful) | Please donate, so we can update & release new awesome apps!

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

prapper
Developer
- August 27, 2011 - 8:08pm

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?


( categories: )

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)

Can you upload it?

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

GENERATION -705 - 991i: The first time you see this, copy it into your sig on any forum. Square it, and then add i to the generation.

Previously known as kAlug.

You can test with any

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

Nope

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

GENERATION -705 - 991i: The first time you see this, copy it into your sig on any forum. Square it, and then add i to the generation.

Previously known as kAlug.

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.

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.

GENERATION -705 - 991i: The first time you see this, copy it into your sig on any forum. Square it, and then add i to the generation.

Previously known as kAlug.

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

Thanks for the offer, I'll

Thanks for the offer, I'll pass though Smiling

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!

Yes

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

GENERATION -705 - 991i: The first time you see this, copy it into your sig on any forum. Square it, and then add i to the generation.

Previously known as kAlug.

Fixed in 2.1.2

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

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