A FileTree represents a hierarchy of files
Questions tagged [filetree]
81 questions
1
vote
0 answers
JQuery Tree File Expand Folders
regarding this SO question: "jquery file tree - folder open by default?"
i tried to get the workdaround of Bermo running...
It works but only for folders like
/images/fruit/
but not for a folder like:
/images/fruit/cherry/
This is my function…

Jens
- 345
- 1
- 6
- 19
1
vote
2 answers
How can I get a node in a JTree file tree to know which file it is?
I wrote a file tree using JTree, and now I am trying to make it more efficient. I am trying to implement lazy loading, but I can't for the life of me get the nodes to recognize which file they are in order to expand the next layer. I've tried having…

SaintWacko
- 854
- 3
- 14
- 35
1
vote
2 answers
longest substrings file tree
Question
What is the shortest and most efficient (preferrable most efficient) way of reading in a single depth folder and creating a file tree that consists of the longest substrings of each file?
start with this
.
├── hello
├── lima_peru
├──…

William Randall
- 81
- 9
1
vote
1 answer
Javascript - read all filenames and output to html with hyperlink
I have a limited hosting server. I want to read the filetree (all files and folders) and create a hyperlink to them on a basic html page.
For clarity, I'm using Keybase, am publicly sharing files, but want to list them on an index.html page, not use…

roadcrypto
- 13
- 2
1
vote
0 answers
How to create a File+Folder Tree View via jQuery
I'm trying to create a way to view CSV file that contains details about a folder and sub folders on a physical drive.
Here's the CSV file:
Volume,Path,Name,Size,Ext,Last modified,Description
"Music","/All Rock Music/All Rock Albums/Rock Album","01.…

mk117
- 753
- 2
- 13
- 26
1
vote
1 answer
Locating the corresponding .classpath file for a .java source file
Let's say I have a java file C:\workspace\project\src\packagename\foobar.java. Now, I would like to compile this file at runtime, but for that I need the corresponding .classpath file (or rather, it's entries), located at…

PixelMaster
- 895
- 10
- 28
1
vote
1 answer
Array of filepath strings to file tree JSON (compatible with react-sortable-tree)
How do I build a JSON object thats is compatible with react-sortable-tree (every nested object has title, children) to render the file tree.
For example, I have this array of filepaths.
var filePaths = [
"Diagnoses/Endocrine disorders/Thyroid…

schintha
- 15
- 1
- 4
1
vote
1 answer
print the folder tree with sizes, windows
I'm looking for a way to print (or write to file) the folder tree of my windows PC, including the size of each folder - but not of single files.
The output should look like:
- My Documents/pictures/selfies/ - 100MB
- My Documents/movies/ - 1000MB
-…

Effe Pelosa
- 163
- 1
- 3
- 13
1
vote
0 answers
Output the pdf files and the directories in a filetree
How can I output only the directories and the pdf files like this
[directory]
_____blabla.pdf
_____fefewfew.pdf
[nextdirectory]
_____afdfsdfsdf.pdf
_____... and so on
?
Hope for some help.
Here is my code: (the code doesn't work. just tried…

Hans Baum
- 381
- 1
- 8
- 17
1
vote
1 answer
Loading file with JavaScript inside a Django app
I am using a JavaScript (jQuery FileTree, see here: http://www.abeautifulsite.net/blog/2008/03/jquery-file-tree/) inside my Django application. The problem is, this JavaScript needs the path to a python script. How can I realise this?
I can not use…

ben
- 115
- 1
- 7
1
vote
3 answers
jqueryFileTree Connector Script Cannot be Found
I am trying to create a webpage that displays a file tree. I chose to use the jqueryFileTree from this website: http://www.abeautifulsite.net/blog/2008/03/jquery-file-tree/
Eventually, I will be hooking this tree up to a server. For now, however, I…

Lethal Left Eye
- 368
- 2
- 9
- 17
1
vote
0 answers
Jquery File Tree - with root folder icon that will collapse the filebrowser
I am using jquery file tree (http://www.abeautifulsite.net/blog/2008/03/jquery-file-tree/). and i want to add an icon for the root folder that when click, it will collapse the open folders and files, just display the immediate directory below the…

Pelang
- 421
- 7
- 19
1
vote
0 answers
Optimal solution for cache files folder structure
I am defining the criteria to create an optimal folder structure for cache files on the filesystem.
The aim is to create the most performing file hierarchy from a filesystem perspective.
Files cached are mainly HTML pages, so they are small files,…

yodabar
- 4,651
- 2
- 33
- 38
1
vote
1 answer
Renaming & moving files based on their file path
I am trying to rename files based on the treepath it is in, then move the renamed files to a specific folder (based on its name).
So, for example, I have a file in path L:\a\b\c\d\e\f\file.pdf
I want to rename "file.pdf" to "d e f"
Also, all the…

user2022574
- 11
- 3
1
vote
3 answers
Porting Java NIO Files.walkFileTree visitor to C, maintaining thread-safety
I have some existing Java code that uses java.nio.file.Files.walkFileTree with the FileVisitor interface, but now I need to port it to plain C. Is there a C equivalent of this interface? If not, what primitives can I use to build one?
I've looked…

Keith Morgan
- 721
- 7
- 17