2020-09-21 16:10:29 +00:00
|
|
|
/******************************************
|
|
|
|
* direct - Directory Manipulation Module *
|
|
|
|
* for run6502 emulator *
|
|
|
|
* Requires fileio.h02 *
|
|
|
|
******************************************/
|
|
|
|
|
2020-10-14 14:59:25 +00:00
|
|
|
const char topdir[]; //Root Directory Relative Path
|
|
|
|
const char updir[]; //Parent Directory Relative Path
|
|
|
|
|
2020-09-21 16:10:29 +00:00
|
|
|
/* Change Directory *
|
|
|
|
* Args: drv - Drive/Disk Identifier *
|
|
|
|
* &dir - Directory Name *
|
2020-10-14 14:59:25 +00:00
|
|
|
* Returns: char e - Error, 0=None */
|
2020-09-21 16:10:29 +00:00
|
|
|
char chdir();
|
|
|
|
|
|
|
|
/* Get Current Working Directory *
|
|
|
|
* Args: drv - Drive/Disk Identifier *
|
2020-10-14 14:59:25 +00:00
|
|
|
* &dir - Directory String *
|
2020-09-21 16:10:29 +00:00
|
|
|
* Returns: char n - Length of Name *
|
|
|
|
* 0 = None or Error *
|
|
|
|
* char e - Error, 0=None */
|
|
|
|
char getcwd();
|
|
|
|
|
|
|
|
/* Make Directory *
|
|
|
|
* Args: drv - Drive/Disk Identifier *
|
|
|
|
* &dir - Directory Name *
|
2020-10-14 14:59:25 +00:00
|
|
|
* Returns: char e - Error, 0=None */
|
2020-09-21 16:10:29 +00:00
|
|
|
char mkdir();
|
|
|
|
|
|
|
|
/* Remove Directory *
|
|
|
|
* Args: drv - Drive/Disk Identifier *
|
|
|
|
* &dir - Directory Name *
|
|
|
|
* Returns: char r - Result, 0=Success *
|
|
|
|
* char e - Error, 0=None */
|
|
|
|
char rmdir();
|