1
0
Fork 0
forked from len0rd/rockbox

New function: rmdir(). Also some changes in the fat code, to track the parent directory in opendir(), to be able to delete directories

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4509 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-04-16 08:58:29 +00:00
parent b8beff39e9
commit bc9397d1fa
4 changed files with 54 additions and 6 deletions

View file

@ -48,6 +48,7 @@ typedef struct {
bool busy;
int startcluster;
struct fat_dir fatdir;
struct fat_dir parent_dir;
struct dirent theent;
} DIR;
@ -73,6 +74,7 @@ typedef struct DIRtag
extern DIR* opendir(char* name);
extern int closedir(DIR* dir);
extern int mkdir(char* name, int mode);
extern int rmdir(char* name);
extern struct dirent* readdir(DIR* dir);