Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public IFileInfo GetDirectoryInfo(string sDirPath)
        {
            AzureCloudFile dir = _provider.GetBlobInfo(sDirPath, true);

            return(new AzureFileInfo(dir));
        }
Ejemplo n.º 4
0
        public IFileInfo GetFileInfo(string sPath)
        {
            AzureCloudFile file = _provider.GetBlobInfo(sPath, false);

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

            return(new AzureFileInfo(dir));
        }
Ejemplo n.º 8
0
        public async Task <IFileInfo> GetFileInfo(string sPath)
        {
            AzureCloudFile file = await _provider.GetBlobInfo(sPath, false);

            return(new AzureFileInfo(file));
        }