LinuxDir2HTML icon indicating copy to clipboard operation
LinuxDir2HTML copied to clipboard

Relative / base paths option

Open andy-pi opened this issue 2 years ago • 2 comments

Thanks for making this. I found it whilst searching for a linux replacement for my windows dir2html. My use case is to use as an index for files in an s3 bucket, but I generate the file locally. Windows dir2html had an option to create relative paths, so that the html links would work wherever they were ultimately placed on the filesystem or internet. I tried just a find and replace on the output html but didn't work for some reason, and I couldn't see an easy way to change it in the source code. Is this something you might implement?

andy-pi avatar Feb 08 '23 19:02 andy-pi

Are you saying something like this:

Your pwd is /home/localcomputer/BunchOfFiles/ and you create the html output into this directory. So the expected file links are ./file1 ./file2 instead of /home/localcomputer/BunchOfFiles/file1.

Therefore, you can now transfer BunchOfFiles/ to another destination and reuse the links. Am I understanding correctly?

homeisfar avatar Feb 14 '23 18:02 homeisfar

yeah exactly. I want to generate something on my local filesystem and then upload it to s3. Would be amazing if this is possible!

andy-pi avatar Feb 17 '23 12:02 andy-pi