# FAT File system

**URL:** <https://forums.digi.com/t/fat-file-system/9362>\
**Category:** Rabbit\
**Created:** [June 21, 2009, 2:34pm UTC](https://forums.digi.com/t/fat-file-system/9362 "2009-06-21T14:34:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jclucas](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jclucas](https://forums.digi.com/u/jclucas)\
**Post date:** [June 21, 2009, 2:34pm UTC](https://forums.digi.com/t/fat-file-system/9362/1 "2009-06-21T14:34:43Z")

</div>

Hi,  
I’m doing a program where I can successfully create a file usign “fat\_Open” but when I want to delete it using “fat\_Delete” I receive error code “-EPERM” which means “file is read-only, hidden etc. - NOT deleted”. I do not set the file as Read Only when creating it.

When I run “FAT\_SHELL.C” program I can successfully delete the file.

In addition, I tried creating a file with “FAT\_SHELL.C” program and the deleting it from my own program and it worked.

The only difference I could see is that when I create files from my programs attributes are:  
“rhsvdA”

And when I create them from “FAT\_SHELL.C” program the attributes are:  
“rhsvda”

I do not know what “A” stands for. On “FAT\_SHELL.C” program there is a line saying: " dent.attr & FATATTR\_ARCHIVE ? ‘A’ : ‘a’); "

Does anyone know how can I fix this? How to change file attributes? How to create them correctly so I can then delete them afterwards?

Sorry if this turned out to be too long 🙂

Thanks for any help you can provide.

Bye!
