Wirawan Purwanto
1e56bb95eb
* wpylib.file.file_utils: added path_prep and mkdir_p.
2014-02-24 16:06:09 -05:00
Wirawan Purwanto
839948a8da
* Moved the following functions from wpylib.shell_tools to
...
wpylib.file.file_utils since they are not directly related to shell:
- file_exists_nonempty
- is_executable_file
- dirname2
- relpath
- path_split_all
- list_dir_entries
These are new API functions, so hopefully their changes would not
affect many existing scripts.
* Added support for xz-compressed tar in untar() routine. Untested.
* Documentation updates.
2014-01-16 12:31:57 -05:00
Wirawan Purwanto
0c352b44f7
* Added function scan_directories() -- initial version for scanning
...
recursively all through directories (no symlink following), to collect
all subdirectories that satisfy the test criteria defined in the
testdir() function argument.
2014-01-16 11:58:51 -05:00
Wirawan Purwanto
d93fb5b7c2
* Added support for .xz file extension.
...
* Using backported lzma module (on python <= 3.2) to eliminate subprocess,
if possible.
2014-01-15 16:39:00 -05:00
Wirawan Purwanto
fb6631f756
* Use is_iterable to detect iterable specs argument.
2013-10-17 13:49:17 -04:00
Wirawan Purwanto
2daca4af6e
* tee_output: Allow None to be given in the `files' argument, which stands
...
for a null file.
2013-04-19 16:46:09 -04:00
Wirawan Purwanto
17d242213d
* Added some useful functions from my pw2g_bench_MnO.py scriptlet collection:
...
- wpylib.math.roundup()
- wpylib.shell_tools.dirname2()
* file_exists_nonempty() is moved to wpylib.shell_tools.
2012-07-25 09:40:37 -04:00
Wirawan Purwanto
96cec22fca
* wpylib.file.file_utils: added file_exists_nonempty() function.
2012-07-24 17:11:36 -04:00
Wirawan Purwanto
5c72506135
* New module: wpylib.file.tee
...
* Added class tee_output for splitting text output to multiple destinations.
2012-05-14 15:48:43 -04:00
Wirawan Purwanto
606214eb66
* Changing all isinstance(STUFF, str)' to isinstance(STUFF, basestring)'
...
for future-proofing this code.
2012-04-13 17:10:32 -04:00
wirawan
4c9b5ce9f7
* Update documentations.
2010-09-27 19:54:29 +00:00
wirawan
090d9f7b00
* Moving pyqmc.utils.file_utils to wpylib project.
2010-09-27 19:47:19 +00:00