Skip file if it exists...

0 views
Skip to first unread message

sil...@gmail.com

unread,
Aug 5, 2007, 11:51:05 PM8/5/07
to nzbperl
Is it possible to add this to the feat. req (if it isn't already)?

When a file gets queued up, first check to see if that filename
already exists. If so, skip the file. Currently nzbperl checks to
see if the "part" filename exists, and if so it skips it. It doesn't
(from what I can see) check to see if the resulting (complete) file
already exists. Currently if you stop nzbperl in the middle (or
wherever) of a large download and re-start it the already downloaded
files will be re-downloaded, and the file will be named <file>.1,
<file>.2, <file>.3... (etc, depending on the name of the file that
already exists).

Thanks for the great work!

Jason Plumb

unread,
Aug 6, 2007, 12:21:22 AM8/6/07
to nzb...@googlegroups.com
Unfortunately, this is by design.

The only way for nzbperl to know what the filename will be is to
download the first part of the file and peek at the uuenc or yenc
header. By default, when the file already exists on disk, it will *not*
be redownloaded. Unless you're using the --redo option, you shouldn't
normally see .1 .2 etc. files.

-jason

sil...@gmail.com

unread,
Aug 6, 2007, 6:06:59 PM8/6/07
to nzbperl
Hi Jason,
That's weird. I'm not using the 'redo' option, but it still
downloads the entire file and will rename it to .1, .2, etc. Any
other ideas?

Thanks

On Aug 6, 12:21 am, Jason Plumb <ja...@noisybox.net> wrote:
> Unfortunately, this is by design.
>
> The only way for nzbperl to know what the filename will be is to
> download the first part of the file and peek at the uuenc or yenc
> header. By default, when the file already exists on disk, it will *not*
> be redownloaded. Unless you're using the --redo option, you shouldn't
> normally see .1 .2 etc. files.
>
> -jason
>

Jason Plumb

unread,
Aug 7, 2007, 3:18:08 AM8/7/07
to nzb...@googlegroups.com
snake...@gmail.com wrote:
> That's weird. I'm not using the 'redo' option, but it still
> downloads the entire file and will rename it to .1, .2, etc. Any
> other ideas?

Interesting. I suppose this could happen with small, single-part files.
Is that maybe what you've got?

-jason

sil...@gmail.com

unread,
Aug 8, 2007, 11:51:33 PM8/8/07
to nzbperl
hmmm....nope. These are files with about 50-70 parts per file.

On Aug 7, 3:18 am, Jason Plumb <ja...@noisybox.net> wrote:

Jason Plumb

unread,
Aug 8, 2007, 11:55:20 PM8/8/07
to nzb...@googlegroups.com
snake...@gmail.com wrote:
> hmmm....nope. These are files with about 50-70 parts per file.

Still stumped. Maybe you can self censor and post a portion of your log
file that shows this behavior?

-jason

Reply all
Reply to author
Forward
0 new messages