Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    pathfinder 0.4.1

    Download button

    No screenshots available
    Downloads: 111  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    John Keyes | More programs
    BSD License / FREE
    May 15th, 2012, 02:40 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    pathfinder description

    Pathfinder makes os.walk usable

    pathfinder is a Python module that makes os.walk usable.

    Some examples

    import pathfinder

    # get all directories and sub-directories in current directory
    paths = pathfinder.pathfind(".", just_dirs=True)

    # get all files in the current directory and all sub-directories
    paths = pathfinder.pathfind(".", just_files=True)

    # get all jpg files using a regex
    paths = pathfinder.pathfind(".", regex=".*\.jpg$")

    # get all jpg files using posix wildcards
    paths = pathfinder.pathfind(".", fnmatch="*.jpg")

    # get all jpg files and png files
    jpg_filter = pathfinder.FnmatchFilter("*.jpg")
    png_filter = pathfinder.FnmatchFilter("*.png")
    image_filter = pathfinder.OrFilter(jpg_filter, png_filter)
    paths = pathfinder.pathfind(".", filter=image_filter)


    The nuts and bolts

    To grab the code, raise an issue or keep track of any updates visit the repository.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    usable os.walk | path finder | path | finder | os.walk

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM