forked from koniifer/ableos
30 lines
533 B
C
30 lines
533 B
C
|
enum FSReturns {
|
||
|
/// The system call was successful
|
||
|
Ok,
|
||
|
/// The directory can not be created
|
||
|
DirectoryCouldNotBeCreated,
|
||
|
/// The directory could not be removed
|
||
|
DirectoryCouldNotBeRemoved,
|
||
|
///
|
||
|
FileCouldNotBeCreated,
|
||
|
///
|
||
|
FileCouldNotBeRemoved,
|
||
|
/// The file could not be opened
|
||
|
FileCouldNotBeOpened,
|
||
|
///
|
||
|
FileCouldNotBeClosed,
|
||
|
};
|
||
|
|
||
|
int create_directory(path) {
|
||
|
return DirectoryCouldNotBeCreated;
|
||
|
}
|
||
|
///
|
||
|
int remove_directory(path) {
|
||
|
return DirectoryCouldNotBeRemoved;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|