| parrotcode: File PMC | |
| Contents | PMCs |

src/pmc/file.pmc - File PMC

File is a singleton class which provides access to File functions.

void *get_pointer()void set_pointer(void *ptr)INTVAL exists(STRING *file)INTVAL is_dir(STRING *path)INTVAL is_file(STRING *path)INTVAL is_link(STRING *path)void copy(STRING *from, STRING *to)from to the path to.Uses the "work everywhere method".
It is good enough to start with.NOTE: I'm sure that there should be more efficient ways to do this.
Be free to change or give me hints on how to change it.
-- ambs
void rename(STRING *from, STRING *to)from to the path to.
stat(2), rename(2)
|
|
|