EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Can I set tags on directories as well as files?

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#31004
Posted: 10/15/2014 16:23:05
by John Lagerquist (Standard support level)
Joined: 10/14/2014
Posts: 4

the subject says it all...
#31010
Posted: 10/16/2014 01:26:21
by Alexander Plas (EldoS Corp.)

Hello

Yes, the tags may be set for files, directories and symlinks as well.
#31045
Posted: 10/17/2014 16:46:13
by John Lagerquist (Standard support level)
Joined: 10/14/2014
Posts: 4

I am not having much success, can you tell me what I am doing wrong? ( I do set the reg key, just not shown below )

fs = new SolFSStorage;
fs->set_PageSize(1024);
fs->set_UseTransactions(true);
fs->set_FileName("test");
fs->Open(somCreateAlways);

fs->CreateDirectory("sig");
fs->SetFileTagAsAnsiString(L"sig", 0, 1, "test");

I get an invalid parameter exception.
#31048
Posted: 10/18/2014 02:17:58
by Eugene Mayevski (EldoS Corp.)

I can't say for sure, but I see that you've specified the filename (directory name in your case) wrong. All filenames in SolFS must be absolute, i.e. start with a path separator: "\sig" is correct, while "sig" is not.


Sincerely yours
Eugene Mayevski
#31049
Posted: 10/20/2014 01:53:31
by Alexander Plas (EldoS Corp.)

Please refer to documentation https://www.eldos.com/documentation/so...tring.html

Invalid parameter in your code is TagID which must be in range of 0x8000..0xCFFF
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.

Reply

Statistics

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