Quade wrote:What you're basically saying is to ignore this problem. 'cause that's what I'm going to do. I can make paths longer than 255 bytes but, I choose not to because explorer can't handle them. I choose not to run the path up to exactly max length.
Sounds to me like you need to use a shorter unrar path and then use the scripting interface to move the files to any folder you want.
Quade wrote:One of the benefits of short paths is that there is a 250ish character total limit on filename + path length. If you then have folders inside the rar and longish filenames, you might run into the limit. What Newsbin does is actually strip the path down if it needs to in order for the filenames to work.
Hello Quade,
I use Newsbin for some time now and I have those path/filename problems frequently.
I think, using a shorter unrar path or other ideas as scripts are only a short solution because they are no safe solutions.
It can happen every time again with a path/filename combination which is too long again.
I have tried to unrar the same rar files at the same position (were Newsbin was unraring them), with Winrar 5 and with
Total Commander and both Programs have worked as Newsbin should have.
I saw that Winrar used the "trick" of using the windows short names for folders when the path/filename length got too long.
So all single folder names as "This is a long folder name" are accessed as "THISIS~1" (dir command with /x) and
only the last name is in long format. (For readability, I think.)
Don't know how Total Commander unrars the files without problems but it does.
By the way, Windows Explorer is also able to access all those files with too long names.
Maybe it's accessing the files the same way as Winrar does.
I'm not happy with that problem, because I had to disable the "Delete RARs and PARS on successfulUnRAR" option.
Now I have to delete the rar files for all downloads manually after checking if there were problems.
Maybe your unrar part is not self-written (maybe from another source) and you don't want to or can't change the current behavior.
I think there are other possibilities that would make me (and maybe other) happy
If rar packed folders and files can not be expanded as they are packed, it should be handled as an error and
all the downloaded rar files should not be deleted. So I could check the "Delete RARs and PARS on successfulUnRAR" option again
and if that path/filename length problem is happening again, I could expand those files manually with another program.
And I also think that it's not correct to change the folder/filename structure leaving files at other places or don't
create folders at all... I think a tool which expands rar files should expand them just as they are packed in the rar or in other
words, in the same structure as when they were packed.
So I think there should be at least an option to disable this "strip the path down if it needs to in order for the filenames to work" part.
If it's not possible to create a folder or a file because the path and filename length is too long, it should be treated as an error
and the rar files should not be deleted. (I don't think it has to to be a selectable option too, because if a folder or a file cannot be
created or written, it should always be handled as an error. But if it would be an option to check or uncheck, I would be happy too.)
Maybe you can think about it (again).
Kind Regards
Calahan