81 questions
0
votes
1
answer
51
views
How to Create a File Tree in GTK-RS/Relm4?
I've been struggling with this for a while, and I've almost got it- but not quite. This is what I have so far:
pub fn load_folder_view(state: &mut State) {
let path = state.current_folder_path....
0
votes
2
answers
93
views
Filter an existing file tree and only return path to the endpoints
I have a file tree with this type
interface FileTreeProps {
name: string;
isMat?: boolean;
children?: FileTreeProps[];
}
After the user inputs and submits the query I want a filtered tree where ...
-2
votes
1
answer
311
views
Creating a hierarchical file structure in Python with file names and sizes
How to create file tree from list of (str, int)?
I already tried to find ways to solve this problem, but I managed to find code for working with files, not a list of strings.
Example of input:
[
('...
-3
votes
1
answer
32
views
Is this React ? How can I find out from the files? It looks very similar to Angular
tree
.
├── assets
│ ├── javascripts
│ │ └── application.js
│ └── sass
│ └── application.scss
├── config.json
├── data
│ └── session-data-defaults.js
├── filters.js
├── routes.js
└── ...
0
votes
1
answer
93
views
Creating a python package with PyPi and executing it so that no "python3" and ".py" extension is needed
So, I was working on one of my projects when I decided that I would make it a command-line-based tool. I could not find any reliable information (maybe I just searched for the wrong thing, sorry if ...
0
votes
0
answers
85
views
How do I refresh/update the Custom fileTree Swing component by itself during file changes?
I found this Custom fileTree Component from github to implement it into my project, I'm using this JTree component to access and display file information like file name, file path, file type in a ...
1
vote
0
answers
192
views
How to get a directory from a path list?
In table data directories and files are stored as complete paths:
rowid
path
1
c:/data/
2
c:/data/test.txt
3
c:/data/sub1/
4
c:/data/sub1/test.dat
To get all items of a folder (directories and files) ...
0
votes
1
answer
385
views
Rust File Tree move occurs because `subtree` has type `trees::Tree<PathBuf>`, which does not implement the `Copy` trait
i am trying to make a simple tauri Program where i have a Filetree of all Files and sub files of a chosen directory.
I have not got many experience in Rust and ran into a problem with Ownerships.
Code
...
1
vote
2
answers
63
views
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?
...
0
votes
1
answer
623
views
Json Array Pushes Data Twice to File Tree with React
When pushing data into a file tree, it pushes 2 sets of the same data and I am not exactly sure why.
I have a simple json array that looks like this:
export const treeDataFile = [{
type: 'directory',...
0
votes
1
answer
213
views
How to print the file tree of only the found files in a recursive function?
I have a recursive function that searches a path for a given file name. What I am trying to do is to print the files that match, along with their parent directories.
So for a file tree like this:
...
0
votes
0
answers
76
views
My js files are not responding to new edits
I'm updating a web application that I built. Changes that I make to my HTML and CSS display on the DOM. However, when I try to make changes in my JS files, they don't show on the DOM. I tested this ...
1
vote
1
answer
147
views
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 ...
2
votes
1
answer
206
views
jQuery File Tree always uses root folder as selected folder
I am having trouble displaying data using jQuery File Tree plugin. No matter what I use for 'root', it always uses '\' and displays content of C drive!
I am using aspx (with code behind that I am not ...
1
vote
0
answers
3k
views
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",...
6
votes
1
answer
6k
views
Angular Material Flat Tree Parent Children Graphical Representaion
I want to show Parent Children graphical representation on Angular Material Flat Tree.
This is the design :
Here is the DEMO what i done so far.
0
votes
1
answer
396
views
Is there a python module to create filetree from a list or index of paths/files (not local system)
Working on a school project... I have a python list object (obtained from a text file) that contains an entire directory listing(about 400K items). Is there a module to organize this list or text file ...
0
votes
0
answers
324
views
I want make java Jtree of Selected file from JFileChooser in my Project
This is my TreeModel Class
BusinessLayer;
import java.io.File;
import javax.swing.event.TreeModelListener;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
...
7
votes
1
answer
12k
views
Gradle - how to iterate in fileTree only for certain type of file
in my gradle task I iterate through fileTree and all works good:
myTask {
fileTree("${project.projectDir}/dir").visit { FileVisitDetails details ->
exec {
//do some operations
}
}...
0
votes
1
answer
689
views
gradle fileTree with variable dir
I am not sure if this is supported by fileTree. I searched the document and all examples used concrete (absolute or relative) paths. This is what I want to do.
ext {
externalProjectRoot "c:/...
0
votes
1
answer
1k
views
Using stack to make file/directory tree in Java
I need to return or print a file/directory tree using stack data structure. For example:
Folder1
Folder1.1
File1.1.1
Folder1.2
Folder2
File2.1
File2.2
...
My code so far:
...
0
votes
0
answers
96
views
Time difference between iterating over a file tree created during a scan vs. one created by duplicating the scanned tree
(Title and question have been significantly changed, as the none of the important parts ended up being relevant to the problem)
I have a generated file tree of a hard drive, and I'm creating a ...
0
votes
3
answers
1k
views
Test file structure in groovy(Spock)
How to test created and expected file tree in groovy(Spock)?
Right now I'm using Set where I specify paths which I expect to get and collecting actual paths in this way:
Set<String> ...
0
votes
1
answer
137
views
Convert PHP file tree array to array of relative paths
I need to take a multidimensional array that defines a file tree structure and convert it to an array of relative paths. I see plenty of answers on how to do the opposite.
I need this:
$file_tree = ...
3
votes
1
answer
3k
views
Django recursive model
I'm making my own "cloud server" with django, for my projects and files.
I'm trying to create tree file structure, but I cant figure out the way to do it.
And how I can make username based URL, like (...
1
vote
1
answer
61
views
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 ...
0
votes
1
answer
1k
views
How do I make functions from a package module immediately available to root application in Python3
Is there a way to import all modules within a package from the root level main application and have functions within the modules immediately available in Python 3? Here is an example file tree:
+app
...
-2
votes
1
answer
2k
views
convert file path list to tree
There is a python file path list like below:
file_path_list = ["test/dir1/log.txt", "test/dir1/dir2/server.txt", "test/manage/img.txt"]
I want to convert it to a tree. the expect result is below:
...
0
votes
0
answers
37
views
php recursiv function not working with button
I wanted to do I file tree in PHP, and I can do it its simple full tree at once:
function tree($path)
{
//scandir creates the array with all the files in the path folder
$files = scandir($path)...
1
vote
1
answer
924
views
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 ...
-1
votes
1
answer
652
views
jQuery File tree from remote Server
I am implementing a file tree in my website that fetches directory information over a remote source (ssh user@remote).
Currently my web page looks like this. The file tree is supposed to be in the ...
0
votes
1
answer
2k
views
Displaying images by relative path in Node.js
I am building my first Node.js MVC app (native node, not using Express) and having trouble displaying images from my html files via relative their paths.
I'll spare you my server.js and router.js ...
2
votes
1
answer
4k
views
Gradle copy task not copying files from temp folder first time around
I've a build file that runs tasks like this.
Task 1 (unpackWar): Unzips war file to Temp folder
Task 2 (copyWarFilesToWebContent): Copies the files to WebContent folder with some exclusions
Task 3 (...
0
votes
1
answer
116
views
How to organize a rails app using nosql
I'm trying to create a Ruby on Rails app and I have recently started using NoSQL databases to store the data. However, I'm not sure how to organize the database files within the file tree. For ...
0
votes
2
answers
684
views
Parse many paths in the file tree object. Is there an efficient algorithm?
My code requires creation the file tree of the many file paths as
dir1/file1
dir1/dir2/file2
dir1/dir2/file3
FileTree object visualization example:
dir1
|_file1
|_dir2
|_file2
|_file3
This tree ...
0
votes
1
answer
701
views
jQueryFileTree How to clear instance, reinstantiate new instance or refresh
I'm using jQuery FileTree. After a file upload via javascript ajax (old school javascript xmlhttp request, not jQuery), I invoke the fileTree using the following code:
$('#jstree').fileTree({
...
1
vote
1
answer
24k
views
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/...
1
vote
0
answers
63
views
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 ...
0
votes
2
answers
2k
views
Using Java's file tree system to get only files and folders not subdirectories
So I have to use the Java file tree system because .listfiles files is for some reason incredibly slow going through a remote network. However all the Java file tree system examples list all the files ...
0
votes
1
answer
250
views
JavaScript filetree with relation
I am looking for a JavaScript method or a framework to achieve this:
So in concrete words I like to have a tree structure same like the one in the Windows Explorer (where you can expand and collapse ...
4
votes
1
answer
2k
views
Skip subdirectories when using ntfw in c
I am trying to get all the files and directories in the current or mentioned folder using nftw. But how do I instruct the function not to go further in any subdirectory? What is the purpose of the ...
0
votes
2
answers
2k
views
Creating A Filetree from a directory with Json.net LINQ
With the following code:
static void Main(string[] args)
{
JObject fileSystemTree = CreateFileSystemJsonTree("C:/DirectoryTree");
Console.WriteLine(fileSystemTree);
...
0
votes
1
answer
627
views
Way to bind data from parent scope to element in node in angular tree control?
Working on adding a drag and drop functionality to angular-tree-control: https://github.com/wix/angular-tree-control
I am trying to bind data from the parent scope to an element I have made in the ...
4
votes
3
answers
781
views
jquery file tree highlight selected
I am implementing a jQueryFileTree (http://www.abeautifulsite.net/jquery-file-tree/) as a file browser and would like each file or directory the user clicks on to stay highlighted. I know this can be ...
0
votes
1
answer
884
views
How do I use SimpleFileVisitor in Java to find a file name whose encoding may vary?
I'm using SimpleFileVisitor to search for a file. It works fine on Windows and Linux. However when I try using it on Unix like operating systems It doesn't work as expected. I would get errors like ...
0
votes
2
answers
936
views
how to configure root folder for jquery file tree?
I used the following code for configuring my jquery file tree.
<script>
jQuery(function ($) {
$(document).ready(function () {
$('#loadFolderTree')....
0
votes
2
answers
340
views
Can a website use multiple .htaccess files if it exists multiple times in the file tree?
I was actually wondering,
If I'd put a .htaccess in the /public_html folder and inside the /public_html/example_site/, would the pages inside /public_html/example_site/ use both of them?
And which ...
1
vote
1
answer
462
views
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 ...
0
votes
1
answer
70
views
Convert a list of filenames to filetree in PHP? [closed]
Is there any library or plugin that I can use to easily convert a list of filenames into a filetree ?
Say for example I have an array that contains a list of file names that I read from text:
C\...
1
vote
3
answers
2k
views
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 ...