Example #1
0
 public BlobFile(BlobContainerClient containerClient, string fileName, IDokanFileInfo info)
 {
     BlobClient =
         containerClient.GetBlobClient(GetAzurePath(fileName, info, containerClient.Name, out var isNormalFile));
     IsNormalFile = isNormalFile;
 }
Example #2
0
 public override NtStatus SetFileTime(string fileName, DateTime?creationTime, DateTime?lastAccessTime, DateTime?lastWriteTime, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
Example #3
0
 public override NtStatus DeleteFile(string fileName, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
Example #4
0
 public override NtStatus SetAllocationSize(string fileName, long length, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
Example #5
0
 public override NtStatus SetFileAttributes(string fileName, FileAttributes attributes, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
Example #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);
 }
Example #7
0
 public NtStatus FlushFileBuffers(string fileName, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
Example #8
0
 public NtStatus SetEndOfFile(string fileName, long length, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
Example #9
0
 public NtStatus SetFileAttributes(string fileName, FileAttributes attributes, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
Example #10
0
 public NtStatus MoveFile(string oldName, string newName, bool replace, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
Example #11
0
 public NtStatus SetAllocationSize(string fileName, long length, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
Example #12
0
 public NtStatus Mounted(IDokanFileInfo info)
 {
     //Here initialize the socket and stuff
     Sync.Open();
     return(DokanResult.Success);
 }
Example #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);
 }
Example #14
0
 public NtStatus GetFileInformation(string fileName, out FileInformation fileInfo, IDokanFileInfo info)
 {
     fileInfo = new FileInformation();
     return(DokanResult.Error);
 }
Example #15
0
 public NtStatus CreateFile(string fileName, DokanNet.FileAccess access, FileShare share, FileMode mode, FileOptions options, FileAttributes attributes, IDokanFileInfo info)
 {
     return(DokanResult.Success);
 }
Example #16
0
 public NtStatus SetFileSecurity(string fileName, FileSystemSecurity security, AccessControlSections sections, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
Example #17
0
 public NtStatus DeleteFile(string fileName, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
Example #18
0
 public NtStatus SetFileTime(string fileName, DateTime?creationTime, DateTime?lastAccessTime, DateTime?lastWriteTime, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }
Example #19
0
 public NtStatus FindStreams(string fileName, out IList <FileInformation> streams, IDokanFileInfo info)
 {
     streams = null;
     return(DokanResult.Error);
 }
Example #20
0
 public NtStatus UnlockFile(string fileName, long offset, long length, IDokanFileInfo info)
 {
     return(DokanResult.Success);
 }
Example #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);
 }
Example #22
0
 public NtStatus Unmounted(IDokanFileInfo info)
 {
     return(DokanResult.Success);
 }
Example #23
0
 public override NtStatus SetEndOfFile(string fileName, long length, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
Example #24
0
 public NtStatus WriteFile(string fileName, byte[] buffer, out int bytesWritten, long offset, IDokanFileInfo info)
 {
     bytesWritten = 0;
     return(DokanResult.Error);
 }
Example #25
0
 public override NtStatus SetFileSecurity(string fileName, FileSystemSecurity security, AccessControlSections sections, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
Example #26
0
 public void Cleanup(string fileName, IDokanFileInfo info)
 {
 }
Example #27
0
 public override NtStatus MoveFile(string oldName, string newName, bool replace, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
Example #28
0
 public void CloseFile(string fileName, IDokanFileInfo info)
 {
 }
Example #29
0
 public override NtStatus LockFile(string fileName, long offset, long length, IDokanFileInfo info)
 {
     return(NtStatus.DiskFull);
 }
Example #30
0
 public NtStatus DeleteDirectory(string filename, IDokanFileInfo info)
 {
     return(DokanResult.Error);
 }