1. X-Plat File Functions
- Posted by euphoric <euphoric at cklester.com> Nov 12, 2003
- 416 views
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! :)
2. Re: X-Plat File Functions
- Posted by kbochert at copper.net Nov 12, 2003
- 378 views
On 12 Nov 2003 at 14:58, 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! :) > If you are looking for a shared library you could try: www.imatix.com They have SFL (Standard Function library) that provides several hundred cross-platform functions, including file, date and socket functions. Karl Bochert
3. 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 | '---''(_/--' `-'\_)
4. Re: X-Plat File Functions
- Posted by euphoric <euphoric at cklester.com> Nov 12, 2003
- 416 views
kbochert at copper.net wrote: > > >On 12 Nov 2003 at 14:58, 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! :) >> >> >If you are looking for a shared library you could try: > www.imatix.com >They have SFL (Standard Function library) that provides several >hundred cross-platform functions, including file, date and socket >functions. > > Yeah, that looks great... 'cept I don't know how to use that with EUPHORIA, and, for simplicity's sake, it would be better to make one in pure EUPHORIA.
5. Re: X-Plat File Functions
- Posted by euphoric <euphoric at cklester.com> Nov 12, 2003
- 406 views
Juergen Luethje wrote: > > >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. > > That would be GREAT!!! Thanks!!!