Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasl/traverse_dir
a simple script to traverse directories and operate files
https://github.com/jasl/traverse_dir
Last synced: 9 days ago
JSON representation
a simple script to traverse directories and operate files
- Host: GitHub
- URL: https://github.com/jasl/traverse_dir
- Owner: jasl
- Created: 2012-06-04T06:14:39.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-06-04T06:24:59.000Z (over 12 years ago)
- Last Synced: 2024-12-24T00:14:49.871Z (18 days ago)
- Language: Ruby
- Size: 89.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Traverse_dir
============
This function is for traverse directory.
the first argument is path where you want to traverse,
second is an array and it's optional if you don't want
to find given file extension, third is an array
if you don't want to filter file.You can given a block to operate files as you want.
Notice: The second and the third arguments are not support regex.
License
==========
Copyright 2012 JaslPermission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.