# FAT FILES/Directories

**URL:** <https://forums.digi.com/t/fat-files-directories/10806>\
**Category:** Rabbit\
**Created:** [August 28, 2008, 2:23pm UTC](https://forums.digi.com/t/fat-files-directories/10806 "2008-08-28T14:23:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jemsat](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@jemsat](https://forums.digi.com/u/jemsat)\
**Post date:** [August 28, 2008, 2:23pm UTC](https://forums.digi.com/t/fat-files-directories/10806/1 "2008-08-28T14:23:55Z")

</div>

Dear friends,

I am trying to manage a file within a directory but I am having a many troubles. It seems like I cannot dertermine wether or not to use the fat\_OpenDir ok use de full path in the filename.

This is the code I am trying to use to delete de file dir.log from de config directory.

int save\_dir(char\* buffer){  
int i, rc;  
char filename[256];  
fat\_part \*particion;  
strcpy(filename,“dir.log”);  
rc=0;  
rc = fat\_AutoMount(FDDF\_USE\_DEFAULT);  
particion=fat\_part\_mounted[0];  
rc=fat\_OpenDir( particion, “/A/config/”, dir );  
rc=fat\_Delete( particion, FAT\_FILE, filename);

I would be gratefull if someone could help me.

THK
