public BlobFile(BlobContainerClient containerClient, string fileName, IDokanFileInfo info) { BlobClient = containerClient.GetBlobClient(GetAzurePath(fileName, info, containerClient.Name, out var isNormalFile)); IsNormalFile = isNormalFile; }
public override NtStatus SetFileTime(string fileName, DateTime?creationTime, DateTime?lastAccessTime, DateTime?lastWriteTime, IDokanFileInfo info) { return(NtStatus.DiskFull); }
public override NtStatus DeleteFile(string fileName, IDokanFileInfo info) { return(NtStatus.DiskFull); }
public override NtStatus SetAllocationSize(string fileName, long length, IDokanFileInfo info) { return(NtStatus.DiskFull); }
public override NtStatus SetFileAttributes(string fileName, FileAttributes attributes, IDokanFileInfo info) { return(NtStatus.DiskFull); }
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); }
public NtStatus FlushFileBuffers(string fileName, IDokanFileInfo info) { return(DokanResult.Error); }
public NtStatus SetEndOfFile(string fileName, long length, IDokanFileInfo info) { return(DokanResult.Error); }
public NtStatus SetFileAttributes(string fileName, FileAttributes attributes, IDokanFileInfo info) { return(DokanResult.Error); }
public NtStatus MoveFile(string oldName, string newName, bool replace, IDokanFileInfo info) { return(DokanResult.Error); }
public NtStatus SetAllocationSize(string fileName, long length, IDokanFileInfo info) { return(DokanResult.Error); }
public NtStatus Mounted(IDokanFileInfo info) { //Here initialize the socket and stuff Sync.Open(); return(DokanResult.Success); }
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); }
public NtStatus GetFileInformation(string fileName, out FileInformation fileInfo, IDokanFileInfo info) { fileInfo = new FileInformation(); return(DokanResult.Error); }
public NtStatus CreateFile(string fileName, DokanNet.FileAccess access, FileShare share, FileMode mode, FileOptions options, FileAttributes attributes, IDokanFileInfo info) { return(DokanResult.Success); }
public NtStatus SetFileSecurity(string fileName, FileSystemSecurity security, AccessControlSections sections, IDokanFileInfo info) { return(DokanResult.Error); }
public NtStatus DeleteFile(string fileName, IDokanFileInfo info) { return(DokanResult.Error); }
public NtStatus SetFileTime(string fileName, DateTime?creationTime, DateTime?lastAccessTime, DateTime?lastWriteTime, IDokanFileInfo info) { return(DokanResult.Error); }
public NtStatus FindStreams(string fileName, out IList <FileInformation> streams, IDokanFileInfo info) { streams = null; return(DokanResult.Error); }
public NtStatus UnlockFile(string fileName, long offset, long length, IDokanFileInfo info) { return(DokanResult.Success); }
public NtStatus GetDiskFreeSpace(out long freeBytesAvailable, out long totalNumberOfBytes, out long totalNumberOfFreeBytes, IDokanFileInfo info) { freeBytesAvailable = FreeSpace; totalNumberOfBytes = DiskSize; totalNumberOfFreeBytes = FreeSpace; return(DokanResult.Success); }
public NtStatus Unmounted(IDokanFileInfo info) { return(DokanResult.Success); }
public override NtStatus SetEndOfFile(string fileName, long length, IDokanFileInfo info) { return(NtStatus.DiskFull); }
public NtStatus WriteFile(string fileName, byte[] buffer, out int bytesWritten, long offset, IDokanFileInfo info) { bytesWritten = 0; return(DokanResult.Error); }
public override NtStatus SetFileSecurity(string fileName, FileSystemSecurity security, AccessControlSections sections, IDokanFileInfo info) { return(NtStatus.DiskFull); }
public void Cleanup(string fileName, IDokanFileInfo info) { }
public override NtStatus MoveFile(string oldName, string newName, bool replace, IDokanFileInfo info) { return(NtStatus.DiskFull); }
public void CloseFile(string fileName, IDokanFileInfo info) { }
public override NtStatus LockFile(string fileName, long offset, long length, IDokanFileInfo info) { return(NtStatus.DiskFull); }
public NtStatus DeleteDirectory(string filename, IDokanFileInfo info) { return(DokanResult.Error); }