Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Show/create file View
-
hello Guys,
I have a Question to generate a View with all listed names in a file or config what else....
my idea behind it is to add some names in it like this example:
- customers_name (main folder) o 01_Beschreibung o Beschriftung Verteilungen.smg o Beschriftung Verteilungen.xlsx o 02_Materiallisten o Projekt o Eintragungen o Geschlossen o Zwischenrechnung
that would be my starting point.
now i want to add some new names like:
- customers_name (main folder) o 01_Beschreibung o Beschriftung Verteilungen.smg o Beschriftung Verteilungen.xlsx o 02_Materiallisten o Projekt o Eintragungen o Geschlossen o Zwischenrechnung o 03_Bilder etc..... .... ...
is this possible with Pythonista ?
or maybe someone have an better idea to do that ;)maybe someone can give me a start :)
thanks regards
-
Are you looking for a view that simply displays a folder of existing files? There is the old File Picker, which is a collapsible view of an existing folder structure. If you want to add files, that would have to be an extension you build in.
https://github.com/tdamdouni/Pythonista/blob/master/finder/FilePicker.pyIf you are just talking about a text outlining tool, there is an active thread about that right now.
-
@Jon sry for the late reply... I had no time for my Hobby.
My Idea is that:
- I want to show my Customer's folder in an TableView
- Thuns i can create new Folder and Place them where i need them
- and remove them..
but i don't think that's possible with a TableView.. or ?
-
See the file picker, is that basically what you want, just with the ability to create new folders and move folders?
-
@JonB, Yes this is it what i want...
only you said with the option create new folder and move them...
but another Thing is i need it only in an .txt file or what ever it is not a real Folder Path.
only created from an Text filei hope you know what i mean.
EDIT: or it must be compatible with FTP
Is this maybe possible ? -
I guess I still don't understand. Are you trying to create folders? Or a text file containing a folder type structure (i.e, an outline).
For the latter, see the other thread about outline with drag/drop capabilities.
-
@JonB said:
see the other thread about outline with drag/drop capabilities.
No, no, please, I would have more users, thus more bugs to debug 😂 but also 😢
-
@DavinE said:
Thing is i need it only in an .txt file or what ever it is not a real Folder Path.
only created from an Text fileI don't understand this sentence. If you want a text file, could you post a sample.
If the text file shows a files tree, when you add,delete,rename,move a file, you should rerun the script.
Or, as almost usual, I don't understand your request. -
i Know my English is really not the best, sry for that.....
I Take some time and thinked about it and i uploaded a Picture and a text file.
(textfile) in my example a structure.ini file with this content:
[main] customers_name = customers_name (main_folder) # displayed name [subdir] subdir_1 = customers_name/01_Beschriftung subdir_2 = customers_name/02_Materialien subdir_3 = customers_name/02_Materialien/Projekt subdir_4 = customers_name/02_Materialien/Projekt/Eintragungen subdir_5 = customers_name/02_Materialien/Projekt/Geschlossen subdir_6 = customers_name/02_Materialien/Projekt/Zwischenrechnung [subfile] subfile_1 = customers_name/01_Beschriftung/Beschriftung_Verteilung.smg subfile_2 = customers_name/01_Beschriftung/Beschriftung_Verteilung.xlsx
the reason why i need a text file is:
- to create a structure Tree like file-picker.py (but with create, delete button and a option to move folders)
- thus i can create these folder on my FTP-Server and copy these files on the right place.
i created the Folders like i would on my NAS/FTP-Server on my iPhone thus i can show you how it looks like.
link belowi hope it's now better to understand ?
-
@DavinE said:
i hope it's now better to understand ?
Sincerely, no. But the reason is perhaps my English.
If the final product is a text file, how would it be used to transfer files to your FTP Server (NAS).
Where are the real files to transfer? -
@cvp, the real files are on my NAS too.
The structure as shown above is where the files should be copied and the folders created accordingly.
The files are not the decisive factor, it is more about creating folders than copying the files.