How to Create/Change to subdirectory with MMC_Fat_assign?

General discussion on mikroBasic.
Post Reply
Author
Message
tgmcn
Posts: 26
Joined: 30 Nov 2007 23:14
Location: Redlands, California

How to Create/Change to subdirectory with MMC_Fat_assign?

#1 Post by tgmcn » 21 Aug 2011 22:31

On the Help for mmc_fat_assign I see that the fileflag for subdirectory is 0x10.
How do you create and navigate subdirectories?

I tried:

Mmc_Fat_Assign("dirA", 0x10)
Mmc_Fat_Assign("fileA.txt", 0xA0)

and

Mmc_Fat_Assign("dirB", 0x10)
Mmc_Fat_Rewrite
Mmc_Fat_Assign(" fileB.txt", 0xA0)

but no directory is created and both fileA.txt and fileB.txt get created in the root directory. Are subdirectories in the MMC_SD library supported in mikroBasic? How about mikroBasic Pro?

tgmcn
Posts: 26
Joined: 30 Nov 2007 23:14
Location: Redlands, California

Re: How to Create/Change to subdirectory with MMC_Fat_assign

#2 Post by tgmcn » 21 Aug 2011 22:45

I see from previous posts that subdirectories aren't yet supported. I would like to add my vote for their inclusion in an update!

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: How to Create/Change to subdirectory with MMC_Fat_assign

#3 Post by janko.kaljevic » 22 Aug 2011 14:33

Hello,

We are currently working on FAT32 library and it will be released very soon.
You can make your suggestions and see what has been done already at this topic:
http://www.mikroe.com/forum/viewtopic.php?f=176&t=39145

Best regards.

Post Reply

Return to “mikroBasic General”