コード例 #1
0
        public IFileInfo GetFileInfo(string sPath)
        {
            sPath = PreparePath(sPath);
            AzureCloudFile file = _provider.Get(sPath, false);
            var            info = new AzureFileInfo((AzureCloudFile)file, _provider);

            return(info);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: AzureFileSystem.cs プロジェクト: reebonz/FTP2Azure
        public IFileInfo GetDirectoryInfo(string sDirPath)
        {
            AzureCloudFile dir = _provider.GetBlobInfo(sDirPath, true);

            return(new AzureFileInfo(dir));
        }
コード例 #4
0
ファイル: AzureFileSystem.cs プロジェクト: reebonz/FTP2Azure
        public IFileInfo GetFileInfo(string sPath)
        {
            AzureCloudFile file = _provider.GetBlobInfo(sPath, false);

            return(new AzureFileInfo(file));
        }
コード例 #5
0
 public AzureFileInfo(AzureCloudFile file)
 {
     _file = file;
 }
コード例 #6
0
 public AzureFileInfo(AzureCloudFile file, AzureBlobStorageProvider provider)
 {
     _file     = file;
     _provider = provider;
 }
コード例 #7
0
        public async Task <IFileInfo> GetDirectoryInfo(string sDirPath)
        {
            AzureCloudFile dir = await _provider.GetBlobInfo(sDirPath, true);

            return(new AzureFileInfo(dir));
        }
コード例 #8
0
        public async Task <IFileInfo> GetFileInfo(string sPath)
        {
            AzureCloudFile file = await _provider.GetBlobInfo(sPath, false);

            return(new AzureFileInfo(file));
        }