Ordnerstruktur als Text auslesen - geht das?!

THEIN

THEIN

Aktives Mitglied
Thread Starter
Dabei seit
26.04.2005
Beiträge
2.489
Reaktionspunkte
651
Hallo zusammen,

ist es möglich, die Ordnerstruktur im Finder unter MacOS High Sierra quasi auszulesen und in ein Textformat zu überführen?! Es geht darum, dass ich einem Bekannten per Mail zeigen möchte, wie meine Ordner-Struktur, die aus ca. 100 Unterordnern besteht, aussieht. Die aufwändigere Variante wäre eine Reihe von Screenshots, aber als purer Text wäre es mir lieber. Geht sowas?!

Danke,
Thorsten

P.S. Frohes Neues Jahr! :)
 
Beispielsweise so:

Code:
ls -RF  verzeichnis/ > struktur.txt

oder so
 
  • Gefällt mir
Reaktionen: Macschrauber
DANKE!!

Das hier war die für mich schnellste und einfachste Variante:

Using the Finder and TextEdit

Besides third-party solutions, the only easy solution in OS X is to copy a folder's contents and paste it into a plain text document in a program such as TextEdit.

To do this, open the desired folder you want to list the contents of, and select all items (command-A) then copy them (command-C) and open TextEdit. Change the document's format to "Plain Text" in the "Format" menu and then paste the clipboard contents to the document.

The benefits of this are that it's simple and straightforward, and if you just want to catalog the contents of the current folder then this is all you need. However, it does not indicate which items are folders versus files, and does not display any heirarchies so if you are in the Finder list view and have a subdirectory expanded, upon pasting them all into the text document you will not see any indication of which are in the subdirectories.

Keep in mind that OS X treats many copied items as objects, so in trying to paste them into other programs the system may try embedding the copied items' content instead of just the name. For TextEdit and other text editors, using a plain text format will overcome this since the format only supports text characters, but for other document formats this may be an issue to be aware of.
 
Zuletzt bearbeitet:
Das funktioniert aber nicht so ohne weiteres mit Unterordnern und Unterunterodnern. In der Spaltendarstellung tauchen deren Inhalte gar nicht auf, in der Listendarstellung muß man alle explizit öffnen.
entschleunigungs Tipp dagegen funktioniert immer, auch ohne in einen Ordner im Finder reinzuschauen, mit beliebig vielen Ebenen.
 
Das funktioniert aber nicht so ohne weiteres mit Unterordnern und Unterunterodnern. In der Spaltendarstellung tauchen deren Inhalte gar nicht auf, in der Listendarstellung muß man alle explizit öffnen.
entschleunigungs Tipp dagegen funktioniert immer, auch ohne in einen Ordner im Finder reinzuschauen, mit beliebig vielen Ebenen.
In der Listendarstellung den Mutterordner mit der ALT-Taste öffnen, dann gehen alle darin enthaltenen Ordner auf. Dann Apfel+A und copy&paste in .txt.
 
Zurück
Oben Unten