EldoS | Feel safer!

Software components for data protection, secure storage and transfer

v5 CbFsFileInfo missing get_Attributes?

Posted: 12/06/2013 05:36:11
by William Levra-Juillet (Priority Standard support level)
Joined: 09/05/2013
Posts: 49

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?)

Posted: 12/06/2013 05:47:07
by Eugene Mayevski (Team)

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
Posted: 12/06/2013 05:59:17
by Volodymyr Zinin (Team)

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



Topic viewed 1205 times

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


Back to top

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

Got it!