Flexible directory walking

Flexible directory walking 1.1

Flexible directory walking 1.1 Download Summary

  • Language: Python
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • License: Other Free / Open Source License - Python License
  • Databases: N/A
  • Downloads: 421
  • Released: Jun 6, 2007

Flexible directory walking 1.1 Description

This function walks a directory tree starting at a specified root folder, and returns a list of all of the files (and optionally folders) that match our pattern(s).

The standard match our tree function os.path.walk can be confusing, and is difficult to customize. It can also be slow. Here's an alternative that allows you to choose the root folder, whether to recurse down through sub-folders, the file pattern to match, and whether to include folder names in the results.

The file pattern is case insensitive and UNIX style. Multiple patterns may be specified; delimit with a semi-colon. Note that this means semi-colons themselves can't be part of a pattern. Boo-hoo.

Flexible directory walking 1.1 Keywords

Flexible directory walking Bookmark

Hyperlink code:
Hyperlink for Forum code:

Flexible directory walking 1.1 Script Download Notice

Top 4 Download periodically updates information of Flexible directory walking 1.1 script from the developer, but some information may be slightly out-of-date.

Our script download links are directly from our mirrors or publisher's website. Flexible directory walking 1.1 torrent files or shared files from free file sharing and free upload services, including Rapidshare, MegaUpload, YouSendIt, MailBigFile, DropSend, HellShare, HotFile, FileServe, MediaMax, zUpload, MyOtherDrive, SendSpace, DepositFiles, Letitbit, LeapFile, DivShare or MediaFire, are not allowed!

Rename subdirectories of a directory tree

... needed to write a sed/awk Python equivalent for walking into a directory tree and renaming certain subdirectories, while also looking into all xml files on the way and replacing/modifying certain strings in those files.It would be nicer if someone could suggest an ...
Python

Watching a directory tree on Unix

... paths and their subdirectories for changes. If any files or directories are modified, the callable 'func' is ... a list of the modified paths of both files and directories.'func' can return a Boolean value for rescanning; if it returns True, the directory tree will be rescanned without calling func() for any ... is so func() can write changes into the tree and prevent itself from being immediately called again.) ...
Python

Clean up a directory tree

This script can be used to clean up a directory tree irrespective of whether the directory tree contains non-empty directories. As long as the user has permission to remove the files, this will work.There is no files, thor cleaning a non-empty directory tree in python os module. os.removedirs() cannot be used
Python

RoadRunner

This recipe allows you to update desired files in a directory tree. It needs to be run from the shell. ... in the file b) the extension of the files to update e.g: .html c) a regular expresion ... inserted ) and d) the path of the directory where you want this update to occur. ...
Python

Tree

The following program displays the directory structure of a specified path using ASCII characters. The program can optionally display files in addition to directories.This program functions similar to the windows 'tree' command. ...
Python