Guest User

Untitled

a guest
Mar 8th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. filePath=Dialog.request_file(:title => "Ordner geht noch nicht - also irgendeine Datei auswählen")
  2. folderPath=File.dirname(filePath[0])
  3. puts folderPath
  4. puts
  5.  
  6. total_size = 0
  7.  
  8. Find.find(folderPath) do |path|
  9. unless FileTest.directory?(path)
  10. unless File.basename(path)[0] == 46
  11. puts path
  12. end
  13. end
  14. end
Add Comment
Please, Sign In to add comment