chazu / ypsilon

Automatically exported from code.google.com/p/ypsilon
Other
0 stars 1 forks source link

Additional filesystem functions #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The attached patch adds some filesystem functions:

  file-regular?
  file-directory?
  file-symbolic-link?
  file-size-in-bytes
  file-readable?
  file-writable?
  file-executable?
  create-symbolic-link
  create-hard-link

I have only tested it under GNU/Linux (Debian sid x86-64), and Windows
equivalents (if possible -- there are no hardlinks on Windows, AFAIK) will
need to be written.

In order to avoid bootstrapping problems, the first patch must be applied,
the a complete rebuild done (make && make -C heap && make), then the second
("activate") patch applied, and a second rebuild done (to state what's
surely obvious to the developers :-)).

Original issue reported on code.google.com by rott...@gmail.com on 28 Dec 2008 at 9:33

Attachments:

GoogleCodeExporter commented 9 years ago
Thank your for your message and patch files. It is great!
-- fujita

Original comment by y.fujita...@gmail.com on 29 Dec 2008 at 3:31

GoogleCodeExporter commented 9 years ago
I have added following functions in revision 356 for posix family and Windows. 
:)
Please Try. Thank you!
-- fujita

file-regular?
file-directory?
file-symbolic-link?
file-size-in-bytes
file-readable?
file-writable?
file-executable?
file-stat-ctime
file-stat-mtime
create-symbolic-link (Windows Vista or later)
create-hard-link
rename-file

Original comment by y.fujita...@gmail.com on 9 Jan 2009 at 4:00