EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: Folders  (Read 6159 times)

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 22.0 Firefox 22.0
    • View Profile
Folders
« on: 07 August 2013, 12:04 »

Quick question...

Do you know if CMP handles folders/paths in a different way to WinRAR?

The reason I ask is in regards to DATs which include a very large number of ROMs in an individual set (Yori Yoshizuki's Unrenamed DATs for example). Rebuilding these to RAR can take ages, especially once the 'set' becomes large since every additional (tiny) 'rom' that gets added causes the whole set to be re-compressed again.

So... what I typically do with these DATs is rebuild uncompressed first, then use WinRAR to compress each set (only one pass per set then), then switch CMP back to 'compress with rar' and scan. This works pretty well, EXCEPT if the set contains folders/paths. CMP doesn't recognise any sub-folders created by WinRAR. Any ideas? Are there different ways to store/declare paths in RAR archives?
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 116
  • Offline Offline
  • Posts: 3305
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 28.0.1500.95 Chrome 28.0.1500.95
    • View Profile
Re: Folders
« Reply #1 on: 07 August 2013, 12:23 »

hmm...there shouldn't be a difference in subfolder handling...send me a dat and rar to play around with it please.
Logged

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 22.0 Firefox 22.0
    • View Profile
Re: Folders
« Reply #2 on: 08 August 2013, 16:34 »

PM sent...  :)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 116
  • Offline Offline
  • Posts: 3305
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 28.0.1500.95 Chrome 28.0.1500.95
    • View Profile
Re: Folders
« Reply #3 on: 08 August 2013, 18:05 »

hmm..ok...there are two things...
zip, rar, most likely 7z as well, can store folders directly (folder slash encoded in the name) and some archive tools add another folder entry in the archive. For zip files these are not needed and cmpro's compressor general options offer a switch to mark them as deleted. They can be removed without doing any harm.

Now with that rar file, this detection failed...which I quickly fixed...but correctly detects the obsolete entry (depending on that compressor switch) but when removing it, cmpro constructs a delete operation which looks like

winrar "d -y -ibck -m5 -s- E:\temp\test\001-421.rar 001-421"

and it seems that winrar does not remove the single folder entry but the whole folder including all files....

so it seems that this functionality should be disabled for rar files completely...unless I find maybe a different switch to remove only the 'dummy' folder entry...




so turning off the cmpro option in compressor settings won't help you at the moment since the check is not working correctly for rar files....over the weekend I will post an update...
« Last Edit: 08 August 2013, 20:09 by Roman »
Logged

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 22.0 Firefox 22.0
    • View Profile
Re: Folders
« Reply #4 on: 09 August 2013, 08:45 »

OK, thanks Roman.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 116
  • Offline Offline
  • Posts: 3305
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 28.0.1500.95 Chrome 28.0.1500.95
    • View Profile
Logged

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 22.0 Firefox 22.0
    • View Profile
Re: Folders
« Reply #6 on: 13 August 2013, 15:33 »

Looks good! Thanks for the quick turn around... 
Logged
Pages: [1]   Go Up
 

Page created in 0.15 seconds with 19 queries.