HydrogenAudio

Lossless Audio Compression => WavPack => Topic started by: shadowking on 2023-03-30 13:19:24

Title: Tip - Copy without correction files
Post by: shadowking on 2023-03-30 13:19:24
Suppose you want to copy an album or collection to a space constrained device.
Some applications don't handle the .wvc anyway so its wasted space.
Normally, Its a bit tricky to not get the wvc files copied.

In Windows I made a simple batch file; WVON.bat

@echo off
attrib +s +h *.wvc /s

Setting hidden + system attributes hides the .wvc files so it all looks much cleaner.
I confirm that playback in FB2K is lossless. Copy / move operations via explorer will ignore .wvc by
default. Your backup apps should include hidden and system files as the only precaution.

To revert everything back to normal; Use WVOFF.bat;

@echo off
attrib -s -h *.wvc /s
Title: Re: Tip - Copy without correction files
Post by: bryant on 2023-03-30 21:54:06
This is very cool, thanks!

Unfortunately I'm not a Windows user and Linux has no equivalent that I'm aware of (hidden files are renamed, and copied by default), but I have run into this exact issue. What I usually end up doing is copying the entire folder(s) and then manually deleting the .wvc files from the target. Alternatively, you can manually create the folders and then select and copy just the .wv files, but neither of these is ideal.
Title: Re: Tip - Copy without correction files
Post by: Brand on 2023-03-31 09:41:14
With Total Commander (or one of its alternatives that works on Linux) you can just enter |*.wvc in the second field of the copy dialog.
Title: Re: Tip - Copy without correction files
Post by: itisljar on 2023-03-31 11:13:07
Total Commander has an option to define which filetypes will you copy. In this case, in "Only files of this type" field enter *.wv and *.jpg if you have album art, or whichever other extension, and it will copy everything with these extensions, leaving out everything else.
Title: Re: Tip - Copy without correction files
Post by: bryant on 2023-03-31 19:52:11
I see that Double Commander (https://doublecmd.sourceforge.io/) is an equivalent utility available for Linux. I'll give that a shot.

Sometimes I'm also copying over FTP (like with Foobar2000) and just found that FileZilla (https://filezilla-project.org/) also has the ability to specify file filters (and probably some other FTP clients do too). Of course, Foobar will play the correction files, but if you never use the lossy WavPack files by themselves you're sort of missing the point...   8)