Package rosetta :: Package utility :: Package file :: Module _utility_file_
[hide private]
[frames] | no frames]

Module _utility_file_

Classes [hide private]
  FileName
File name class supporting Windows and UN*X/Linux format names
  FileNameAP
  FileNameCAP
  PathName
Path name class supporting Windows and UN*X/Linux format names
  PathNameAP
  PathNameCAP
Functions [hide private]
 
combine_names(...)
combine_names( (vector1_string)file_name_strings) -> FileName : utility/file/file_sys_util.hh:97
 
create_blank_file(...)
create_blank_file( (str)blank_file) -> bool : Create a blank file if it doesn't already exist
 
create_directory(...)
create_directory( (str)dir_path) -> bool : Create a directory if it doesn't already exist
 
create_directory_recursive(...)
create_directory_recursive( (str)dir_path) -> bool : Create a directory and its parent directories if they doesn't already exist
 
file_basename(...)
file_basename( (str)filename) -> str : Prefix of a file name
 
file_delete(...)
file_delete( (str)path) -> int : Delete file
 
file_exists(...)
file_exists( (str)path) -> bool : Does file exist?
 
file_extension(...)
file_extension( (str)filename) -> str : Extension of a file name
 
file_size(...)
file_size( (str)filename) -> int : File size
 
gunzip(...)
gunzip( (str)compressedfile [, (bool)overwrite=False]) -> int : gunzip: file decompression
 
gzip(...)
gzip( (str)uncompressedfile [, (bool)overwrite=False]) -> int : gzip: file compression
 
is_directory(...)
is_directory( (str)path) -> bool : Is the file a directory?
 
list_dir(...)
list_dir( (str)dir, (vector1_string)files) -> int : utility/file/file_sys_util.hh:95
 
trytry_ifstream_open(...)
trytry_ifstream_open( (object)ifstream_, (str)name, (object)open_mode) -> bool : Try to open file for read a few times just in case it is locked (from BOINC LIB)
 
trytry_ofstream_open(...)
trytry_ofstream_open( (object)ofstream_, (str)name, (object)open_mode) -> bool : Try to open file for write a few times just in case it is locked (from BOINC LIB)
Variables [hide private]
  __package__ = None
Function Details [hide private]

combine_names(...)

 

combine_names( (vector1_string)file_name_strings) -> FileName :
    utility/file/file_sys_util.hh:97

    C++ signature :
        utility::file::FileName combine_names(utility::vector1<std::string, std::allocator<std::string> >)

create_blank_file(...)

 

create_blank_file( (str)blank_file) -> bool :
    Create a blank file if it doesn't already exist
    

    C++ signature :
        bool create_blank_file(std::string)

create_directory(...)

 

create_directory( (str)dir_path) -> bool :
    Create a directory if it doesn't already exist
    

    C++ signature :
        bool create_directory(std::string)

create_directory_recursive(...)

 

create_directory_recursive( (str)dir_path) -> bool :
    Create a directory and its parent directories if they doesn't already exist
    

    C++ signature :
        bool create_directory_recursive(std::string)

file_basename(...)

 

file_basename( (str)filename) -> str :
    Prefix of a file name
    

    C++ signature :
        std::string file_basename(std::string)

file_delete(...)

 

file_delete( (str)path) -> int :
    Delete file
    

    C++ signature :
        int file_delete(std::string)

file_exists(...)

 

file_exists( (str)path) -> bool :
    Does file exist?
    

    C++ signature :
        bool file_exists(std::string)

file_extension(...)

 

file_extension( (str)filename) -> str :
    Extension of a file name
    

    C++ signature :
        std::string file_extension(std::string)

file_size(...)

 

file_size( (str)filename) -> int :
    File size
    

    C++ signature :
        long file_size(std::string)

gunzip(...)

 

gunzip( (str)compressedfile [, (bool)overwrite=False]) -> int :
    gunzip: file decompression
    

    C++ signature :
        long gunzip(std::string [,bool=False])

gzip(...)

 

gzip( (str)uncompressedfile [, (bool)overwrite=False]) -> int :
    gzip: file compression
    

    C++ signature :
        long gzip(std::string [,bool=False])

is_directory(...)

 

is_directory( (str)path) -> bool :
    Is the file a directory?
    

    C++ signature :
        bool is_directory(std::string)

list_dir(...)

 

list_dir( (str)dir, (vector1_string)files) -> int :
    utility/file/file_sys_util.hh:95

    C++ signature :
        int list_dir(std::string,utility::vector1<std::string, std::allocator<std::string> > {lvalue})

trytry_ifstream_open(...)

 

trytry_ifstream_open( (object)ifstream_, (str)name, (object)open_mode) -> bool :
    Try to open file for read a few times just in case it is locked (from BOINC LIB)
    

    C++ signature :
        bool trytry_ifstream_open(std::basic_ifstream<char, std::char_traits<char> > {lvalue},std::string,std::_Ios_Openmode)

trytry_ofstream_open(...)

 

trytry_ofstream_open( (object)ofstream_, (str)name, (object)open_mode) -> bool :
    Try to open file for write a few times just in case it is locked (from BOINC LIB)
    

    C++ signature :
        bool trytry_ofstream_open(std::basic_ofstream<char, std::char_traits<char> > {lvalue},std::string,std::_Ios_Openmode)