开发者

Unique id of files and monitoring file system changes

开发者 https://www.devze.com 2022-12-13 15:40 出处:网络
Do files or folders on S60 have some unique id value that can identify them? I would like to have an id that can be later used to extract full path of a file or folder. Is this开发者_JAVA技巧 achieva

Do files or folders on S60 have some unique id value that can identify them?

I would like to have an id that can be later used to extract full path of a file or folder. Is this开发者_JAVA技巧 achievable?

If not, what would be the best way to keep track of files of interest? E.g. if I have a pdf reader, and I want to have a menu option to show all pdf files on the system - how do I prevent my application to search all over the whole system every time I chose this option? Can I search it once and easily monitor changes while my application is active?

Thank you.


I can't quite see anything in the Symbian OS C++ API that would do exactly what you want.

Using RFs::NotifyChange() is probably your best bet.


Yes, index them at one point and use RFs::NotifyChange(). How would an ID help in identifying new files?


Symbian Timebox 10.1 (^3?) introduces a new file notification API, CFsNotify.

If tells you exactly what has changed and to which file/dir/drive.

http://developer.symbian.org/xref/epl/xref/MCL/sf/os/kernelhwsrv/userlibandfileserver/fileserver/inc/f32notification.h#140

It is similar to Microsoft's ReadDirectoryChangesW API.

0

精彩评论

暂无评论...
验证码 换一张
取 消