rlv-dan / snap2html Goto Github PK
View Code? Open in Web Editor NEWGenerates directory listings contained in a single, app-like HTML files
Home Page: http://www.rlvision.com/snap2html
License: GNU General Public License v3.0
Generates directory listings contained in a single, app-like HTML files
Home Page: http://www.rlvision.com/snap2html
License: GNU General Public License v3.0
I wish you can alter the template.html to use virtual path instead of the real path, so if I used an indexed html file on a cdrom to display it's contents it would work anywhere despite the drives letter.
It counts folders and files, but in result shows only files.
Like using say task scheduler to run a bat
That does something like snap2html - root folder "c:" -page title "c drive" etc and have it automatically make the updated HTML?
Hello,
Thanks for this great app :) .
It could be useful to be able to generate only "folder" list.
Bye
Hi,
I have discovered Snap2HTML last week-end and it's a really great app, i really enjoy it.
But something bug me quickly.
If i scan a folder with files and subfolders, i generate a HTML. I make a search of a file, and i don't anderstand why, sometimes i have a column "Folder" where is the path of the file i am looking for is, and for somes HTML generated i don't have that column.
I run some quick test and it's look like i have the column with less files/folders scan.
This column is really helpfull and i wouldlike have it in all HTML generated.
Is that possible ?
Thank you
i am using snap2html to create a html file containing list of files in a directory. i wrote a batch script to automate the process. it works perfectly with command line capabilities of snap2html. though i have a problem with folders that have a persian name and space in their name when they are set as the root folder. this is my .bat file:
@echo off setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir z:\scan\ /b /a:d') do call :myf1 "%%~a" :myf1 set "x=z:\scan\%~1" set "y=!x!\index.html" echo !x! rem echo !y! C:\Snap2HTML\Snap2HTML.exe -path:"!x!" -outfile:"!y!" -link:"" -title:"%~1" exit /B
does any one has any solution for that?
Hi!
The header of the table contents can become sticky when scrolling, if you use:
#files.tablesorter thead tr th {
position: sticky;
top: 0;
}
Maybe you can consider putting it in the template.
Support for position: sticky
can be seen here: https://caniuse.com/css-sticky
Thanks for a great software!
It will be good to have a hotkey/button to Toggle LTR/RTL view.
RTL languages (as Hebrew and Arabic ) has a different view of Windows Explorer (RTL view).
In fact, it is more correct and will be much better to have both LTR+RTL views, to make it more readable for both LTR/RTL languages.
When it is LTR view it is more convenient to read LTR filenames
When it is RTL view it is more convenient to read RTL filenames
Hi there,
I've downloaded the program Snap2HTML and I like it, it looks very useful but I found out a strange behaviour. If I start it (be it using the GUI or command-line) and select both 'include hidden items' and 'include system items', whenever the program finds a folder with a long path name (> 259 chars) it will end (not crash) before all the folders are indexed.
But if I select no options or only one of those options, everything works as expected but the program will skip the rest of the folders (inside the same parent folder) after the folder with the long path name.
Let me make it a bit more visual using this example:
C:.
├───folder 1
│ ├───subfolder 1
│ ├───subfolder 2
│ ├───subfolder 3 - this one has a very very long name
│ ├───subfolder 4
│ └───subfolder 5
└───folder 2
├───subfolder 1
└───subfolder 2
So, if I check both 'hidden items' and 'system items' the program will only index up until "C:\folder 1\subfolder 2". Not "subfolder 3" or "C:\folder 2".
And If I check none or only one of the options it will index "C:\folder 2" this time, but it will also skip all the folders inside "C:\folder 1" after "C:\folder 1\subfolder 2".
I hope I've made it clear so you can review it.
Looks like this is an old problem:
#16
#37
Please, allow us to help you find and fix this problem.
Cheers.
add icon images.
No matter which sort is selected, can the button [..] for returning to the previous directory be fixed?
Hi, love this tool. I was running this last night and noticed that while it processed smaller test folders with no difficulty it wasn't writing output for larger folders, size on disk didn't seem to matter, I think it might have been number of files contained. Is this something you guys have observed elsewhere?
I ran against my C:\Temp which is 2.12GB and contains 438 files, 179 folders. It looked like it worked through the contents in a good time but then sat overnight with a message at the bottom of the GUI, "Processing Content", no output was written.
This was ran on Windows 10, 1803.
Hello,
it would be great if the file path was displayed in the search results on mouse-over.
I really like your programme. Thank you very much.
Best regards
Willi
http://tva1.sinaimg.cn/large/007X8olVly1g6prhkl5egj30bv0390sk.jpg
The following text was generated by Google Translate:
As shown in the figure, the revision dates are arranged in reverse order, and 2018/10/19 should be ranked ahead of 2018/8/15, but not. I think it should be date sorting in the form of text, not in the form of dates.
Serious bug that leads to incomplete generation of the report.
Tested with a partition of a disk, using the root drive letter as the query folder.
Even top layer folders (under root, E:) were missing. Some folders inside that top layer folders were also missing.
Those folder names are quite short, and in English characters.
xxxx files in xxx folders (xxx GB) -> All incorrect and mostly missing
Is there a way to open a generated html with the name column already sorted high to low.
I've a directory containing about 1350 service information bulletins sorted on year-release#.
Currently files will show up like:
2004-001 machine model - subject
2004-002 machine model - subject
<>
2020-074 machine model - subject
2020-075 machine model - subject
Would be great to always have the most recent release on top without needing to sort the name column by clicking the header first. I've adapted de template without issues to match my website and all works great, but I cannot find how to do this. Would this be possible at all?
Not sure if you are still working on this but I must say it is a great little program so much so I had to donate. I wonder if there is any progress in merging the html files? I have plenty of HDD snap2html files I would love to batch together but have had no luck trying to join them.
Thank you for great app
In some cases it is sufficient to know the path to a file, but neither the direct file information nor the search file information will show the path to the file.
Without linking these files to a network or local address, the search results are often confusing, and even if the file is found, there is no way to know where it is located.
In a case the user has a file list in txt file like this:
"C:\Snap2HTML\Snap2HTML"
"C:\Snap2HTML\Snap2HTML\ReadMe.txt"
"C:\Snap2HTML\Snap2HTML\Snap2HTML.exe"
"C:\Snap2HTML\Snap2HTML\template.html"
or like this:
C:\Snap2HTML\Snap2HTML
C:\Snap2HTML\Snap2HTML\ReadMe.txt
C:\Snap2HTML\Snap2HTML\Snap2HTML.exe
C:\Snap2HTML\Snap2HTML\template.html
and he wants to view the file list in Explorer view
Is it possible to add function to show how much space is left in the drive?
It would be great if we could exclude folders by name like
$RECYCLE.BIN
or by attribute like
don't show hidden/system files
Hi,
i found a small bug with special characters in the path.
We have a path like: _c:\name & name GmbH_ which is somehow handled as _c:\name & name GmbH_ so the length calculation is wrong for e.g. var dir_tmp = getDirNameAndPath(SelectedFolderID).substring(sourceRoot.length);
In this example it will produce always a "subfolder" "GmbH" (the 4 extra characters).
i fixed it dirty for me by adding a .replace(/&/g, '&');
on the return of the getDirNameAndPath
function. Im not very into JavaScript so i dont know a better solution. Maybe someone can fix it more properly and generic and make a PR.
PS: thank you for this project!
When attempting to create a HTML file of one of my drive directories, a HTML file with only the first 5 sub-folders (and all their nested folders) was created when the root directory contains 21 sub-folders. Could this be due to possible HTML file size limit?
Here is a snapshot of the of what the Snap2HTML app gathered for the HTML file (size 67.4 MB), showing 502,218 files in 197,808 folders (135.91 GB).
I show the properties of the first 5 sub-folders shows similar stats: 520,122 files in 206,491 folders (150 GB).
I also show the properties of all 21 sub-directories which is what the HTML file should contain in total: 676,087 files in 216,610 folders (12.6 TB).
https://i.imgur.com/SM2O8U5.png
I can also say that all other 8 drives that I created a HTML file for seemed to be successful at including all files and folders within the root directory and they ranged in size 3.66 MB [50,412 files in 3,447 folders (12.96 TB)] to 18.6 MB [275,339 files in 36,096 folders (1.40 TB)].
If this is a bug due to HTML file size limitations, can it either be fixed to include all of what's in the root directory, or if not, can it be broken out into multiple HTML files once the the first file gets to be too large?
Thanks
Would love to have a mobile friendly layout. Thanks!
I've noticed that the HTML output may be work in
Preview Pane of Windows Explorer
Currently it has issue.
Please check if you can make it works.
This tool is great!
Do you have any plans on making it for linux?
Hi,
This is really a great work! I can use this tool to summarize all my data files in an html.
However, if I need to transfer them to other people, the location of the root folder changed, so they can not open the file by clicking.
Is there s possibility to change the absolute address to relative address?
Thanks,
When I use argument values that contain the comma ",
" character I get unhandled exception error.
Examples of commands that generates error:
Snap2HTML -path:"C:\folder\to\snap\path\containing, comma\" -outfile:"c:\file\output\path\file name containing, comma.html" -link:"C:\folder\to\link\to\path\containing, comma\" -title:"Title, containing, comma"
If any of the arguments contains a comma ,
, the application generates unhandled exception error.
I admit I know absolutely nothing about js or html or any kind of coding, so I apologize if it's obvious or impossible. Just curious if we can have the highest level of the folder structure already expanded upon launch of the page, while leaving all the others collapsed. Thank you!
Steve
i was using version 2.0 for a long time then i noticed version 2.14 is released so i changed to the new version. but since i am using my costume template, dates are not formatted. it seems that i have to change something in my template but don't know what and where!
i appreciate if anyone could help.
Hello, is there any way to make the result's background dark?
Like a dark theme for Snap2HTML.
The option to scan multiple folders from which a list gets generated.
for instance
D:
Folder A
Folder B
Folder C
E:
Map A
Map B
Map C
resulting in:
Root:
Folder B
Map B
Map C
That or a way to link several generated files into a page basically doing the same.
If there are too many contents in the folder, the generated html will be very large, or the html will be opened slowly or cannot be opened at all. Is there any way to solve this problem?
Hey,
I used this software to create multiple snaps of my Hard Drives. I want to show these files in only one snap. I tried to Copy(under open with editor) the lines with D.p.... and paste it into another one. But nothing changes.
Is there a easy way to do this?
I mean to add a Folder with sub folders like this
(Badly I can't HTML, only JAVA)
In the root dir, there's no option to paste a dir, why not?
In Export I see no option to export except to copy the text and create a file.
Thanks for this tool, works for my needs, too bad you abandoned it, 2 years ago.
please. I need HTML2snap. Someone gave me a html file with 400k files and I need to compare it to some filelists I have. Doing it manually would take an eternity.
I don't want any fancy fucking html, I just want a list of the files.
The html document is 200MB and I finally managed to write the dirs
object to a file as json with a blob, but it's still in some fucked array format. It's impossible to work with. jq can't parse the JSON and I don't want to reverse engineer snap2html.
Is there anything that can convert this shit to a simple list in this format:
/path/to/file
/path/to/next/file
/path/to/another/file
Your tool seriously lacks that option or I'm missing it
currently I only see option to export view which means current subdirectory but it would be really cool if it was possible to export entire directory structure as json/plain/etc....
I feel like I requested this when I first found the app...
Can you please add support for pasting the directory, rather than using folder navigation, full file explorer is much easier to navigate.
When Snap2HTML encounters folders and files where the total length of the file name including absolute path exceeds 255 characters, it either does not display file attributes (size and timestamp) and/or stops the output to the html file if the folder name breaks that limit.
This could be a limit of an old MS Windows API and even most of Microsoft apps including Word, Excel etc. cannot handle longer names even though there are newer API calls supporting much longer file names. There are some apps capable of using nested folder names > 255 characters, e.g. WinRar, Total Commander, AllDup etc.
I experienced this on my NAS, where the file structure is deeply nested but I was able to reproduce it on local Windows 10 drive too. I'm attaching a sample folder structure with nested folders/files exceeding 255 chars to illustrate the issue; the files are all blank (0 bytes).
Hi @rlv-dan, I love your piece of software as it comes in hand on so many occasions.
Though there is one thing that I can't always appreciate on some of my user cases. When I create an HTML to share with other, with the "Link Files" disabled, I'm not always pleased that they can still extract the "Full Path" from the HTML "Export View"-function.
I would love to see an option where "Full Path" and/or "Link Files" can be set relative to the root of the index, regardless where it is stored. Thus, not hard referenced to the initial source or a given source, but relative referenced to current location where the HTML is stored/opened.
Not sure if I explained sufficient and that you grasp my idea, but let me know what you think and what is reasonably possible.
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.