OpenAFS
OpenAFS distributed network file system
|
00001 // 00002 // FileUtil.h 00003 // AFSCommander 00004 // 00005 // Created by Claudio Bisegni on 21/06/07. 00006 // Copyright 2007 INFN - National Institute of Nuclear Physics. All rights reserved. 00007 // 00008 00009 #import <Cocoa/Cocoa.h> 00010 #include "AuthUtil.h" 00011 00012 @interface FileUtil : NSObject { 00013 AuthUtil *autorization; 00014 } 00015 00016 -(id) init; 00017 -(void) dealloc; 00018 -(OSStatus) startAutorization; 00019 -(OSStatus) autorizedMoveFile:(NSString*)srcPath toPath:(NSString*)dstPath; 00020 -(OSStatus) autorizedChown:(NSString*)filePath owner:(NSString*)owner group:(NSString*)group; 00021 -(OSStatus) autorizedCopy:(NSString*)srcPath toPath:(NSString*)dstPath; 00022 -(OSStatus) autorizedDelete:(NSString*)destFilePath; 00023 -(void) endAutorization; 00024 @end