EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SetFileTagAsNumber

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#22804
Posted: 12/13/2012 17:22:30
by Bhushan Manekar (Standard support level)
Joined: 07/18/2012
Posts: 10

Hello,

Is it possible to add tags to directories? When I call the following two lines, the latter raises an exception (-24, errInvalidParameter):

Code
Storage.ForceCreateDirectories(Dirpath);
Storage.SetFileTagAsNumber(Dirpath,'FID', 0, 1991);


I am setting the TagID = 0 so I reference the tag via its tag name.

Appreciate any advice,

Cheers,
Adrian

(Delphi XE3, SolFS 4.5, Win7)
#22809
Posted: 12/14/2012 01:44:19
by Alexander Plas (EldoS Corp.)

Hello

Yes, it is possible to add tags to directories, you can even add tags to named streams.

The error occurred because you have not added the tag name to the storage, in the other words you haven't declared your tag. You have to call AddTagName method one time per storage before using the tag name. Please refer to the documentation https://www.eldos.com/documentation/so...gname.html . Actually the documentation is a bit incomplete, there is not mentioned that the TagID parameter may have value 0, in this case the system choose the TagID value for given TagName automatically.

Reply

Statistics

Topic viewed 1594 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!