{ Snipperize } /directory
Snippets about directory
Global Directory Walker
for file in GlobDirectoryWalker(".", "*.py"): print file
Python / directory, fnmatch, os, walker, recursive / by ThePeppersStudio (116 days, 20.79 hours ago)
Recursively list all files and directories below a given directory
This is example code of how to walk a directory recurisively and create a flat list of fully qualified names for all the files and directories under the supplied virtual root directory.
Objective-C / file, directory, list / by ThePeppersStudio (126 days, 23.13 hours ago)
Super File System Service
The one and only class for all your file handling needs. Browse a directory and all child directories: $filesSvc = new FileSystemService ( ); $templates = $filesSvc->browseDirectory ( '../path/to/directory', true ); echo jsonencode ( $templates ); printr( $templates ); Read a file: $file = FileSystemService::readFile ( '/path/to/file.html' ); echo ( $file ); Write a file: $file = FileSystemService::writeFile ( 'FileName', 'Is this enough information Vordreller? I think you should try to experiment.' );
PHP / file, directory, handler / by ThePeppersStudio (209 days, 5.22 hours ago)
Make directory if it doesn't already exist
Python / directory, mkdir, os / by ThePeppersStudio (242 days, 18.91 hours ago)
- 1
- Home
- New Snippet
- Languages
-

