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?
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:
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?
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.
Forum posts: 51
Which platform are you working on?
Forum posts: 12
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?
Forum posts: 149
I don't know, but seeing as the 2nd parameter is a TInt doesn't that give you your answer.
Forum posts: 140
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
Forum posts: 12
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?
Forum posts: 140
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