Questions tagged [filetree]

A FileTree represents a hierarchy of files

81 questions
-1
votes
1 answer

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: [ ('dir1\\file.exe', 14680064) …
wowlikon
  • 1
  • 2
-1
votes
1 answer

Rust File Tree move occurs because `subtree` has type `trees::Tree`, 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 use std::fs; use std::path::PathBuf; use…
DaKoller
  • 11
  • 3
-1
votes
1 answer

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 left marked panel. I have used the paramiko library…
isopropylcyanide
  • 423
  • 4
  • 16
-1
votes
2 answers

How to display a filesystem tree to user be able to click and select a path?

Mates, after having a hard time trying to implement a class to enumerate the how filesystem tree I give up triyng to make it work. I have a textbox with a filepath. I want the user to be able to click and from a panel displaying a filesystem tree it…
Guilherme Longo
  • 2,278
  • 7
  • 44
  • 64
-2
votes
1 answer

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: tree_data = [ { "path": "test", …
nanci
  • 411
  • 1
  • 5
  • 17
-3
votes
1 answer

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 └── views ├── index.html └── layouts …
cpuQs
  • 19
  • 1
1 2 3 4 5
6