Gibt es ein Programm zum Kopieren von vollständigen Ordnerpfadverzeichnissen?

Kennt jemand ein Programm dafür?

Grundsätzlich haben Sie einen Ordner auf Ihrem Computer

Und Unterordner darin

Eventuell weitere Unterordner darin

Einige Textdateinamen + Bilder darin

Gibt es ein Programm, das die gesamte Strukturhierarchie kopiert, damit ich sie in ein Programm wie Workflowy importieren kann?

Beispiel Dateistruktur:

Geben Sie hier die Bildbeschreibung ein

Beispiel zum Einfügen des Ergebnisses in workflowy / dynalist

Geben Sie hier die Bildbeschreibung ein

Beispiel zum Einfügen des Ergebnisses in eine .txt-Datei

Geben Sie hier die Bildbeschreibung ein

Oder würde jemand wissen, welche Ressourcen ich verwenden könnte, um dies zu skripten?

Natürlich mit Ihrem Benutzernamen, den Sie immer verwenden könnenos.walk
Danke, ich werde mir dieses Anaconda-Paket auch ansehen :)
osEs ist ein Standard-Python-Paket, das auch in Anaconda enthalten ist, os.walkdurchläuft rekursiv einen Verzeichnisbaum in jedem Unterverzeichnis mit einem root, dirsund einer filesListe, rootdie der Pfad zum aktuellen Verzeichnis ist, das durchlaufen wird, dirseiner Liste der darin enthaltenen Verzeichnisse und files, Sie haben es erraten , a Liste der Dateien in diesem Verzeichnis. Sehr, sehr mächtig und nützlich. Es lohnt sich auch, es glob.glob("**")in Python 3.5+ zu betrachten
Danke Steve, ich werde mir das auf jeden Fall ansehen. je mehr du weisst :)

Antworten (2)

Der Windows-Befehl: tree /A /F > temp.txtkommt dem, wonach Sie fragen, sehr nahe.

|   temp.txt
|   
+---build
|       __init__.py
|       
+---lib
|   |   activex.py
|   |   activexwrapper.py
|   |   anchors.py
|   |   busy.py
|   |   buttonpanel.py
|   |   buttons.py
|   |   calendar.py
|   |   CDate.py
|   |   ClickableHtmlWindow.py
|   |   colourdb.py
|   |   colourselect.py
|   |   colourutils.py
|   |   combotreebox.py
|   |   customtreectrl.py
|   |   delayedresult.py
|   |   dialogs.py
|   |   docview.py
|   |   dragscroller.py
|   |   embeddedimage.py
|   |   eventStack.py
|   |   eventwatcher.py
|   |   evtmgr.py
|   |   expando.py
|   |   fancytext.py
|   |   filebrowsebutton.py
|   |   flashwin.py
|   |   flashwin_old.py
|   |   flatnotebook.py
|   |   floatbar.py
|   |   foldmenu.py
|   |   foldpanelbar.py
|   |   gestures.py
|   |   graphics.py
|   |   gridmovers.py
|   |   grids.py
|   |   hyperlink.py
|   |   iewin.py
|   |   iewin_old.py
|   |   imagebrowser.py
|   |   imageutils.py
|   |   infoframe.py
|   |   inspection.py
|   |   intctrl.py
|   |   itemspicker.py
|   |   langlistctrl.py
|   |   layoutf.py
|   |   msgpanel.py
|   |   multisash.py
|   |   mvctree.py
|   |   myole4ax.idl
|   |   myole4ax.tlb
|   |   newevent.py
|   |   nvdlg.py
|   |   pdfwin.py
|   |   pdfwin_old.py
|   |   platebtn.py
|   |   plot.py
|   |   popupctl.py
|   |   printout.py
|   |   progressindicator.py
|   |   pydocview.py
|   |   pyshell.py
|   |   rcsizer.py
|   |   resizewidget.py
|   |   rightalign.py
|   |   rpcMixin.py
|   |   scrolledpanel.py
|   |   sheet.py
|   |   shell.py
|   |   sized_controls.py
|   |   softwareupdate.py
|   |   splashscreen.py
|   |   splitter.py
|   |   statbmp.py
|   |   stattext.py
|   |   throbber.py
|   |   ticker.py
|   |   ticker_xrc.py
|   |   utils.py
|   |   wordwrap.py
|   |   wxcairo.py
|   |   wxPlotCanvas.py
|   |   wxpTag.py
|   |   __init__.py
|   |   
|   +---agw
|   |   |   advancedsplash.py
|   |   |   aquabutton.py
|   |   |   artmanager.py
|   |   |   balloontip.py
|   |   |   buttonpanel.py
|   |   |   cubecolourdialog.py
|   |   |   customtreectrl.py
|   |   |   flatmenu.py
|   |   |   flatnotebook.py
|   |   |   floatspin.py
|   |   |   fmcustomizedlg.py
|   |   |   fmresources.py
|   |   |   foldpanelbar.py
|   |   |   fourwaysplitter.py
|   |   |   genericmessagedialog.py
|   |   |   gradientbutton.py
|   |   |   hyperlink.py
|   |   |   hypertreelist.py
|   |   |   infobar.py
|   |   |   knobctrl.py
|   |   |   labelbook.py
|   |   |   multidirdialog.py
|   |   |   peakmeter.py
|   |   |   piectrl.py
|   |   |   pybusyinfo.py
|   |   |   pycollapsiblepane.py
|   |   |   pygauge.py
|   |   |   pyprogress.py
|   |   |   rulerctrl.py
|   |   |   shapedbutton.py
|   |   |   shortcuteditor.py
|   |   |   speedmeter.py
|   |   |   supertooltip.py
|   |   |   thumbnailctrl.py
|   |   |   toasterbox.py
|   |   |   ultimatelistctrl.py
|   |   |   xlsgrid.py
|   |   |   zoombar.py
|   |   |   __init__.py
|   |   |   
|   |   +---aui
|   |   |       auibar.py
|   |   |       auibook.py
|   |   |       aui_constants.py
|   |   |       aui_switcherdialog.py
|   |   |       aui_utilities.py
|   |   |       dockart.py
|   |   |       framemanager.py
|   |   |       tabart.py
|   |   |       tabmdi.py
|   |   |       __init__.py
|   |   |       
|   |   +---data
|   |   |       default_help_text.html
|   |   |       ShortcutEditor_1.png
|   |   |       ShortcutEditor_1_thumb.png
|   |   |       ShortcutEditor_2.png
|   |   |       ShortcutEditor_2_thumb.png
|   |   |       ShortcutEditor_3.png
|   |   |       ShortcutEditor_3_thumb.png
|   |   |       ShortcutEditor_4.png
|   |   |       ShortcutEditor_4_thumb.png
|   |   |       
|   |   +---persist
|   |   |       persistencemanager.py
|   |   |       persist_constants.py
|   |   |       persist_handlers.py
|   |   |       __init__.py
|   |   |       
|   |   \---ribbon
|   |           art.py
|   |           art_aui.py
|   |           art_default.py
|   |           art_internal.py
|   |           art_msw.py
|   |           art_osx.py
|   |           bar.py
|   |
ah vielen Dank dafür. Mir wurde gesagt, ich solle es woanders verwenden, tree F > temp.txtaber es gab mir eine wirklich seltsame Datenformatierung (funktionierte aber immer noch)
Das /ateilt ihm das ASCII-Format statt Extended ASCII mit.

Bei einer halb verwandten Antwort habe ich ein Programm gefunden, das auf andere Weise das tut, was ich will

https://alternativeto.net/software/filelist-creator/

Grundsätzlich erstellt es eine Excel- oder .txt-Datei mit jedem VOLLSTÄNDIGEN Ordnerpfadverzeichnis für jeden Namen, was nicht allzu schwer zu verarbeiten ist

Ich könnte dies also auch zum Formatieren von Daten verwenden