Hi,
Hello,I am using the OS X fuse with a combination of the 2 provided samples:
HelloFS
LoopbackFS
My project combining both local files and virtual files (a simple NSArray with strings which represents filenames).
I am trying to handle copy item from their source path to another destination.
Since i have 2 types of items (virtual and local) I need to get the source path of the copied item, in order to distinct between a virtual and a local item.
From what I saw, the delegates which called when I paste a copied item, in the new location, are (in their chronicle order):
1. - (NSDictionary *)attributesOfItemAtPath:(NSString *)path userData:(id)userData error:(NSError **)error
2. - (BOOL)openFileAtPath:(NSString *)path mode:(int)mode userData:(id *)userData error:(NSError **)error
and then:
3. - (BOOL)createFileAtPath:(NSString *)path attributes:(NSDictionary *)attributes userData:(id *)userData error:(NSError **)error
So, I have an event call when a file create (pasted), but I do i know its source path?
Is there any other method I can use?
Thanks!
Nir