rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: newbie on August 09, 2021, 03:07:30 PM

Title: Redux: .tar doesn't support files of size above 8gb
Post by: newbie on August 09, 2021, 03:07:30 PM
Re: http://rejetto.com/forum/index.php?topic=11682.0

I am seeing this issue as well in hfs2-2.4-rc07. Did the fix posted in the above forum post reviewed/actioned into a fix?

Currently, I can download a 8+GB file successfully....but I have a use case where I need to download a folder w/ lots of tiny files and 1 or 2 large files (that could be <20GB).

Thank you. I appreciate any help or pointers re: this matter.
Title: Re: Redux: .tar doesn't support files of size above 8gb
Post by: NaitLee on August 10, 2021, 06:42:42 AM
Seems an external file compressor is necessary now :D

We can archive files with HFS macro with external command-line software such as 7-zip. This will be a workaround for the tar problem.

If this problem affects you deeply, let me do it now :)

Also, please have a try on my PHFS? The link is in my signature, it uses Python libs to archive to tar format and is more stable.
I'm wondering is there also a problem with PHFS. Testing is welcome!
Title: Re: Redux: .tar doesn't support files of size above 8gb
Post by: NaitLee on August 10, 2021, 07:12:34 AM
Here is the script, add to diff tpl of root folder.

Code: [Select]
[7z|public]
{.set|real_folder|{.vfs to disk|%folder%.}.}
{.set|command_line|7za.exe a -bd -y -ttar -o"{.^real_folder.}" "{.^real_folder.}\archive.tar" "{.^real_folder.}".}
{.add to log|{.^command_line.}.}
{.exec|{.^command_line.}|out=x.}
{.^x.}
{.redirect|%folder%archive.tar.}

And don't forget to download the console version of 7-zip (https://7-zip.org/download.html), and extract "7za.exe" to the folder that contains hfs.exe.

After that, visit "http://localhost:8080/folder/?mode=section&id=7z".

The drawback is, it creates a new archive, maybe not what you want because it costs space.

Just remembered PHFS also creates a new archive in system %temp%.

So, HFS have advanced technique that stream an archive on-the-fly. The best solution is still wait rejetto to fix the 8GB issue in original HFS. :)