Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def list_files
- url = NSURL.fileURLWithPath(library_path);
- error = nil;
- properties = [NSURLLocalizedNameKey, NSURLCreationDateKey, NSURLLocalizedTypeDescriptionKey, nil];
- manager = NSFileManager.defaultManager
- manager.contentsOfDirectoryAtURL(url,
- includingPropertiesForKeys: properties,
- options: (NSDirectoryEnumerationSkipsPackageDescendants | NSDirectoryEnumerationSkipsHiddenFiles),
- error: error).collect &:absoluteString
- end
Add Comment
Please, Sign In to add comment