Skip to content

html and javascript to generate a clickable file system hierarchy underneath a specified directory

Notifications You must be signed in to change notification settings

e-gun/filesystemhtml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html and javascript to generate a clickable file system hierarchy underneath a specified directory

the directory is watched; modifications are reflected in the output

as a package:

  1. set filesystemhtml.AbsPath and filesystemhtml.FSDir
  2. start filesystemhtml.WatchFS()
  3. query filesystemhtml.FSResponse.GetHTML() and filesystemhtml.FSResponse.GetJS() as needed

nb: assuming you have access to jQuery and Material Symbols

% tree
.
├── adir
│   ├── aa1
│   ├── asubdir
│   ├── asubdir2
│   │   ├── f1
│   │   └── f2
│   ├── img.jpg
│   ├── mv.avi
│   ├── p.pdf
│   └── wd.doc
├── afile.txt
├── bdir
│   ├── lock.txt
│   ├── prot
│   │   ├── pf1.txt
│   │   └── pf2.png
│   └── pwd
│       ├── bleh
│       └── z_user_is_user2
└── bfile.txt

7 directories, 14 files

all closed semi-open all-open

About

html and javascript to generate a clickable file system hierarchy underneath a specified directory

Resources

Stars

Watchers

Forks

Packages

No packages published