Re: X-Plat File Functions
- Posted by "Juergen Luethje" <j.lue at gmx.de> Nov 12, 2003
- 387 views
C. K. Lester wrote: > Is there a cross-platform file operations library out there? > > For example, one that would allow file_delete(name_of_file) or > file_rename(old_name, new_name) to work on all EUPHORIA-supported platforms. > > If not, somebody should make one! :) I have made one, together with Jim Brown. It's main functiions are: -- s = file_path(name) -- s = file_name(name) -- i = exist(name) -- i = make_dir(dirname) -- i = del_file(filename) -- i = del_dir(dirname) -- x = del_tree(dirname) -- i = get_attr(name) -- i = set_attr(name, attr) -- x = get_file_time(filename) -- i = set_file_time(filename, filetime) -- i = copy_file(sourcefile, targetfile) -- x = copy_tree(sourcedir, targetdir) -- i = move(oldname, newname) [= rename()] It's not ready for release yet, but it's already usable. If you want, I can send it to you privately. Regards, Juergen -- /"\ ASCII ribbon campain | |\ _,,,---,,_ \ / against HTML in | /,`.-'`' -. ;-;;,_ X e-mail and news, | |,4- ) )-,_..;\ ( `'-' / \ and unneeded MIME | '---''(_/--' `-'\_)