资 源 简 介
Pathtool creates an very efficient API to the filesystem paths. Usage is dirt simple. You only need to call the path function with a fullpath, an optional pattern, and an optional action callback.
Pathtool: An efficient Python Path API
Author: Noah Gift
Version: $Revision: 0.1.1 $
Copyright: This document has been placed in the public domain.
Summary
You can find a practical example of how to use this API here:
https://www.ibm.com/developerworks/aix/library/au-cli_plugins/
Pathtool is an efficient API to walking a filesystem, and it aims to be
very simple, yet powerful. By calling path you can pass it a path to a
filesystem, apply an optional unix style pattern filter, and an optional
action callback function.
This allow you to powerful things to a filesystem in one line of code. You
search a directory
There is a record dictionary that contains useful key/value combinations such
as a unique_id