public IFileInfo GetFileInfo(string sPath) { sPath = PreparePath(sPath); AzureCloudFile file = _provider.Get(sPath, false); var info = new AzureFileInfo((AzureCloudFile)file, _provider); return(info); }
public bool Put(string sPath, IFile oFile) { var f = new AzureCloudFile { Uri = new Uri(sPath, UriKind.RelativeOrAbsolute), Data = oFile.File.ToArray(), Size = oFile.File.Length }; _provider.Put(f); return(true); }
public IFileInfo GetDirectoryInfo(string sDirPath) { AzureCloudFile dir = _provider.GetBlobInfo(sDirPath, true); return(new AzureFileInfo(dir)); }
public IFileInfo GetFileInfo(string sPath) { AzureCloudFile file = _provider.GetBlobInfo(sPath, false); return(new AzureFileInfo(file)); }
public AzureFileInfo(AzureCloudFile file) { _file = file; }
public AzureFileInfo(AzureCloudFile file, AzureBlobStorageProvider provider) { _file = file; _provider = provider; }
public async Task <IFileInfo> GetDirectoryInfo(string sDirPath) { AzureCloudFile dir = await _provider.GetBlobInfo(sDirPath, true); return(new AzureFileInfo(dir)); }
public async Task <IFileInfo> GetFileInfo(string sPath) { AzureCloudFile file = await _provider.GetBlobInfo(sPath, false); return(new AzureFileInfo(file)); }