FileSystemMount() Help

Login to reply to this topic.
Tue, 2008-02-19 22:49
Joined: 2007-09-17
Forum posts: 12

Can anyone please give me a code example of dealing with file system API? Such as FileSystemMount()?

Thanks in advance.


Wed, 2008-02-20 03:48
Joined: 2007-04-29
Forum posts: 51
Re: FileSystemMount() Help

Which platform are you working on?

Wed, 2008-02-20 04:59
Joined: 2007-09-17
Forum posts: 12
Re: FileSystemMount() Help

I am using s60 3rd sdk. My question regarding MountFileSystem() is: do we always pass in .fsy file as the first parameter, and driveNumber as the second? Can we instead of puting a drive number, put a directory path (E:/Images) as the second parameter?

Wed, 2008-02-20 18:24
Joined: 2007-09-23
Forum posts: 149
Re: FileSystemMount() Help

I don't know, but seeing as the 2nd parameter is a TInt doesn't that give you your answer.

Wed, 2008-02-20 19:36
Joined: 2004-09-14
Forum posts: 140
Re: FileSystemMount() Help

No, its a file system.

You could map the implementation of the FS underneath to another directory and map the objects in the FS but its likely to be more hassle than its worth.

Also you cannot mount drives that already exist - e.g. you cannot remount c:


Paul Todd

Wed, 2008-02-20 20:25
Joined: 2007-09-17
Forum posts: 12
Re: FileSystemMount() Help

Thank you both, Numpty and paul. I am still a bit confused about the first parameter of MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync). Let's say I have a SD card on the device, and I need to call MountFileSystem() to mount it on one of the drives. What should be passed as the first parameter? and in what format?

Wed, 2008-02-20 21:11
Joined: 2004-09-14
Forum posts: 140
Re: FileSystemMount() Help

You first call AddFileSystem which adds the fsy to the system and then registers a name for the file system.
You call MountFileSystem which mounts the file system using the registered name to a drive.


Paul Todd

  • Login to reply to this topic.