Share

parchive

Tracker: Bugs

5 par2cmdline tries to process a directory and fails - ID: 892377
Last Update: Comment added ( qquka )

When running par2cmdline (0.3) under Windows, with
this command line:

par2 c -n1 -r10 -s16384 .recovery *.*

in a directory which contains other directories, like

D:\1\
-D:\1\1\
-D:\1\file.txt
-D:\1\file2.txt

It gives this error message:

The source file does not exist: D:\1\1

Thus it's not possible to par all files in a directory which
contains other directories..

Hope it gets fixed!


Algirdas ( qquka ) - 2004-02-07 12:23

5

Open

None

Peter C

par2cmdline

None

Public


Comments ( 2 )




Date: 2004-02-07 18:46
Sender: qquka

Logged In: YES
user_id=970195

Woops, I'm terribly sorry.

I'm on windows, and I've been using version combiled with
mingw. Appearently it failed this check:

if (0 == (fd.dwFileAttributes &
FILE_ATTRIBUTE_DIRECTORY))


And thus would pass directories further on to process.

But now I compiled it with VS.NET and it works fine!

Btw, the source is not compatible with VS.NET. Only one
change is needed though:

galois.h(159):

inline Galois<bits,generator,valuetype>::Galois
(Galois<bits,generator,valuetype>::ValueType v)

to

inline Galois<bits,generator,valuetype>::Galois(typename
Galois<bits,generator,valuetype>::ValueType v)

bye :)


Date: 2004-02-07 18:34
Sender: peterbclementsAccepting Donations

Logged In: YES
user_id=477089

This has been reported by someone else.

The expansion of *.* will include both files and directories, so
if you tell par2 that you wish to include a folder, then
logically it should fail.

I will however be updating the command line parser to ignore
directories specified on the command line.

In the mean time, you could try something like:

par2 c -n1 -r10 -s16384 .recovery `find . -not name '.*' -
maxdepth 1 -type f`


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Pending 2004-02-07 18:46 qquka
status_id Open 2004-02-07 18:34 peterbclements
close_date - 2004-02-07 18:34 peterbclements