EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Source File Path Not Available in Mapper

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#12587
Posted: 02/24/2010 03:34:16
by Abhay Gumaste (Basic support level)
Joined: 01/27/2010
Posts: 14

Hi,

Using a ELDOS Mapper application and copying a file from C:\ to Z:\, with command

COPY C:\temp.txt Z:\

Here Source file can be from D:\ also.

In the CBFS handler, I do not get info on source File Path.

Please give me your ideas to get source file's Full File Path.
#12589
Posted: 02/24/2010 03:56:14
by Eugene Mayevski (EldoS Corp.)

There's no such thing as "copy" in the OS world. Copying is the compound operation of reading some data and writing some data (and not necessarily the same data). What you get is the data to be written. You can not and may not make any assumption regarding where this data is coming from.


Sincerely yours
Eugene Mayevski
#12590
Posted: 02/24/2010 04:18:48
by Abhay Gumaste (Basic support level)
Joined: 01/27/2010
Posts: 14

Thanks for a quick reply.

Yes, COPY is compound operation but how will COPY read contents from source file if it doesn't have source file's path while copying a file from C:\ to Z:\.

In CBFS callback is there any way to get source file's path when copying from C:\ to Z:\
#12591
Posted: 02/24/2010 04:42:35
by Eugene Mayevski (EldoS Corp.)

Quote
Abhay Gumaste wrote:
how will COPY read contents from source file if it doesn't have source file's path while copying a file from C:\ to Z:\.


It doesn't matter for the OS, where some process has obtained the file from.

Quote
Abhay Gumaste wrote:
In CBFS callback is there any way to get source file's path when copying from C:\ to Z:\


There can be NO such way.


Sincerely yours
Eugene Mayevski
#12594
Posted: 02/24/2010 05:01:15
by Abhay Gumaste (Basic support level)
Joined: 01/27/2010
Posts: 14

When copying file, source-file's NTFS security-attributes are not persisted into destination-file. Hence to read these attributes and apply them destination-file, I need source-FilePath.
Do you have any idea howto persist NTFS security-attributes?
#12595
Posted: 02/24/2010 05:05:07
by Eugene Mayevski (EldoS Corp.)

This is a job of the copying procedure to copy security attributes, not yours.

You need to implement OnSetSecurityAttributes and OnGetSecurityAttributes callback / event handlers.


Sincerely yours
Eugene Mayevski
#12596
Posted: 02/24/2010 05:26:10
by Abhay Gumaste (Basic support level)
Joined: 01/27/2010
Posts: 14

Thanks,

Can you please provide me suggestion or any link how to implement OnSetSecurityAttributes and OnGetSecurityAttributes callback / event handlers.
#12597
Posted: 02/24/2010 05:38:43
by Eugene Mayevski (EldoS Corp.)

This has been discussed before in this forum. Please use Search.

*After* version 3.0 is out, we will add sample code for those callbacks to the sample projects. But this is 2-3 months away from now.


Sincerely yours
Eugene Mayevski
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.

Reply

Statistics

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