예제 #1
0
 public BlobFile(BlobContainerClient containerClient, string fileName, IDokanFileInfo info)
 {
     BlobClient =
         containerClient.GetBlobClient(GetAzurePath(fileName, info, containerClient.Name, out var isNormalFile));
     IsNormalFile = isNormalFile;
 }
예제 #2
0
 public override NtStatus SetFileTime(string fileName, DateTime?creationTime, DateTime?lastAccessTime, DateTime?lastWriteTime, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
예제 #3
0
 public override NtStatus DeleteFile(string fileName, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
예제 #4
0
 public override NtStatus SetAllocationSize(string fileName, long length, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
예제 #5
0
 public override NtStatus SetFileAttributes(string fileName, FileAttributes attributes, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
예제 #6
0
 public NtStatus FindFilesWithPattern(string fileName, string searchPattern, out IList <FileInformation> files, IDokanFileInfo info)
 {
     files = new List <FileInformation>();
     if (Sync != null)
     {
         if (Sync.IsOpen)
         {
             List <FileStatistics> stats = Sync.GetDirectoryListing(DriveHelpers.ConvertToUnixPath(fileName)).ToList();
             foreach (FileStatistics s in stats)
             {
                 files.Add(DriveHelpers.ConvertToWindowsFile(s));
             }
         }
     }
     Log.Information(fileName);
     return(DokanResult.Success);
 }
예제 #7
0
 public NtStatus FlushFileBuffers(string fileName, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
예제 #8
0
 public NtStatus SetEndOfFile(string fileName, long length, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
예제 #9
0
 public NtStatus SetFileAttributes(string fileName, FileAttributes attributes, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
예제 #10
0
 public NtStatus MoveFile(string oldName, string newName, bool replace, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
예제 #11
0
 public NtStatus SetAllocationSize(string fileName, long length, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
예제 #12
0
 public NtStatus Mounted(IDokanFileInfo info)
 {
     //Here initialize the socket and stuff
     Sync.Open();
     return(DokanResult.Success);
 }
예제 #13
0
 public NtStatus GetVolumeInformation(out string volumeLabel, out FileSystemFeatures features, out string fileSystemName, out uint maximumComponentLength, IDokanFileInfo info)
 {
     volumeLabel            = Label;
     features               = FileSystemFeatures.None;
     fileSystemName         = FileSystem;
     maximumComponentLength = 256;
     return(DokanResult.Success);
 }
예제 #14
0
 public NtStatus GetFileInformation(string fileName, out FileInformation fileInfo, IDokanFileInfo info)
 {
     fileInfo = new FileInformation();
     return(DokanResult.Error);
 }
예제 #15
0
 public NtStatus CreateFile(string fileName, DokanNet.FileAccess access, FileShare share, FileMode mode, FileOptions options, FileAttributes attributes, IDokanFileInfo info)
 {
     return(DokanResult.Success);
 }
예제 #16
0
 public NtStatus SetFileSecurity(string fileName, FileSystemSecurity security, AccessControlSections sections, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
예제 #17
0
 public NtStatus DeleteFile(string fileName, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
예제 #18
0
 public NtStatus SetFileTime(string fileName, DateTime?creationTime, DateTime?lastAccessTime, DateTime?lastWriteTime, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
예제 #19
0
 public NtStatus FindStreams(string fileName, out IList <FileInformation> streams, IDokanFileInfo info)
 {
     streams = null;
     return(DokanResult.Error);
 }
예제 #20
0
 public NtStatus UnlockFile(string fileName, long offset, long length, IDokanFileInfo info)
 {
     return(DokanResult.Success);
 }
예제 #21
0
 public NtStatus GetDiskFreeSpace(out long freeBytesAvailable, out long totalNumberOfBytes, out long totalNumberOfFreeBytes, IDokanFileInfo info)
 {
     freeBytesAvailable     = FreeSpace;
     totalNumberOfBytes     = DiskSize;
     totalNumberOfFreeBytes = FreeSpace;
     return(DokanResult.Success);
 }
예제 #22
0
 public NtStatus Unmounted(IDokanFileInfo info)
 {
     return(DokanResult.Success);
 }
예제 #23
0
 public override NtStatus SetEndOfFile(string fileName, long length, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
예제 #24
0
 public NtStatus WriteFile(string fileName, byte[] buffer, out int bytesWritten, long offset, IDokanFileInfo info)
 {
     bytesWritten = 0;
     return(DokanResult.Error);
 }
예제 #25
0
 public override NtStatus SetFileSecurity(string fileName, FileSystemSecurity security, AccessControlSections sections, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
예제 #26
0
 public void Cleanup(string fileName, IDokanFileInfo info)
 {
 }
예제 #27
0
 public override NtStatus MoveFile(string oldName, string newName, bool replace, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
예제 #28
0
 public void CloseFile(string fileName, IDokanFileInfo info)
 {
 }
예제 #29
0
 public override NtStatus LockFile(string fileName, long offset, long length, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
예제 #30
0
 public NtStatus DeleteDirectory(string filename, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }