EldoS | Feel safer!

Software components for data protection, secure storage and transfer

v5 CbFsFileInfo missing get_Attributes?

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#27589
Posted: 12/06/2013 05:36:11
by William Levra-Juillet (Priority Standard support level)
Joined: 09/05/2013
Posts: 49

Hi,
Just switching from CbFS v4 to v5 (using c++ lib).
Inside CanFileBeDeleted / OnDeleteFile, I need to differentiate file and directory.
In v4, I used CbFsFileInfo::get_Attributes and checked FILE_ATTRIBUTE_DIRECTORY
But "get_Attributes" is gone in v5.
How can I differentiate a file vs a directory in v5?
(or am I doing something wrong?)

Thx
William
#27590
Posted: 12/06/2013 05:47:07
by Eugene Mayevski (EldoS Corp.)

I believe this exact question was asked some time before and the answer was trivial - you (your application) know better what you have to delete because you have access to backend data. You check the backend storage for this information.


Sincerely yours
Eugene Mayevski
#27591
Posted: 12/06/2013 05:59:17
by Volodymyr Zinin (EldoS Corp.)

Or in your context associated with FileInfo (i.e. in the FileInfo.UserContext field) you can cache file attributes for the "backend" file.

Reply

Statistics

Topic viewed 1007 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!