Methods and classes dealing with file access.
|
read_from_file(filename,
myfunct,
*args,
**opt)
Open a file, apply the function myfunct (with sock as an arg) on its
content and return the result. |
source code
|
|
|
write_to_file(filename,
myfunct,
*args)
Open a file for writing, apply the function myfunct (with sock as an
arg) on its content and return the result. |
source code
|
|
|
append_to_file(filename,
myfunct,
*args)
Open a file for appending, apply the function myfunct (with sock as
an arg) on its content and return the result. |
source code
|
|
|
is_uptodate(picklefile,
path_list=None,
min_time=1300120445)
Check if the pickle files is uptodate compare to a list of files. |
source code
|
|
|
format_path(path)
Format the path in local format taking in entry a unix format |
source code
|
|
|
cp(path1,
path2,
log=True)
simple cp taking linux or mix entry |
source code
|
|
|
mv(path1,
path2)
simple mv taking linux or mix format entry |
source code
|
|
|
ln(file_pos,
starting_dir=' . ' ,
name='
' ,
log=True)
a simple way to have a symbolic link whithout to have to change
directory starting_point is the directory where to write the link
file_pos is the file to link WARNING: not the linux convention |
source code
|
|