Re: cross-platform library for file system operations (was: dos.e)
- Posted by jbrown105 at speedymail.org May 19, 2002
- 416 views
On 0, jluethje at gmx.de wrote: > > Hello Derek, > > you wrote: > > > Good work, J. > > Thank you. > > > Maybe not many people use DOS anymore > > Well, this could be the reason, why this bugs weren't found before. > > Unfortunately, Euphoria doesn't have built in support for some > "everyday" file system operations, such as del_file(), del_dir(), > move_file(), move_dir(). > > IMO "dos.e" isn't the solution, but some of it's routines could be part > of the solution. What I would greatly appreciate -- for Euphoria as a > cross-platform language -- is a cross-platform library for those > operations. It could be a good supplement to Euphoria's "file.e". > > I think "dos.e" is a good starting point as far as DOS is concerned. For > Windows, it should not be too complicated to write some small wrappers. > About Linux and FreeBSD I don't know anything ... > > I would like to contribute to such a project as much as I can. I have > programming experience, mainly with PowerBasic, for about 10 years, but > only as an amateur. > > To begin, I just wrote "file2.e", which I attach here for those who are > interested. (At the moment it contains only del_file() and del_dir() for > DOS32 and WIN32.) > > Best regards, > Juergen > I'll see what I can whip up for the Linux versions of those functions. BTW you may want to consider using system_exec() to call system commands for certain routines until pure euphoria code (or calls to the OS written in Eu) are written to replace them; that way you can get a fully functional library while it is still in early development. jbrown -- http://fastmail.fm - 100% lightning