Liebe Community,
bevors kommt: Ich habe im Forum gesucht und mit Google, beidesmal nichts gefunden!
Problem ist folgendes: Ich will Verzeichnisse rekursiv auslesen, dazu muss ich unterscheiden ob der Pfad auf ne Datei ider ein Verzeichnis deutet. Bisher bin cih wie folgt vorgegangen:
C#-Quelltext
1:
| if(pfad.Contains(".")){...} |
Nachdem in der vollen URL aber zwangsläufig Punkte vorkommen (
ftp.SERVER.de, usw.), habe ich das immer weng unsauber gelöst.
Frage: Gibt es eine Lösung, mit der man abfragen könnte, ob der Pfad auf ne Datei oder n Verzeichnis deutet? Also quasi so änhlich wie
C#-Quelltext
1:
| if(pfad.IsFile()){...} |
Danke schonmal und ruhigen Feiertag noch,
Kanne