In this chapter, we will cover following recipes:
- Traversing foldersârecursively traversing a path in the filesystem and inspecting its contents
- Working with pathsâbuilding paths in a system-independent way
- Expanding filenamesâfinding all files that match a specific pattern
- Getting file informationâdetecting the properties of a file or directory
- Named temporary filesâworking with temporary files that you need to access from other processes too
- Memory and disk bufferâspooling a temporary buffer to disk if it's bigger than a threshold
- Managing filename encodingâworking with the encoding of filenames
- Copying a directoryâcopying the content of a whole directory
- Safely replacing a file's contentâhow to replace the content of a file safely in case of failures