public IFileSystem LoadFileSystem(FileBucketMeta meta)
        {
            var settings = new QiniuBucketSettings
            {
                Bucket = meta.Config["Bucket"],
                Domain = meta.Config["Domain"],
                AccessKey = meta.Config["AccessKey"],
                SecurityKey = meta.Config["SecurityKey"]
            };

            return new QiniuFileSystem(settings);
        }
Beispiel #2
0
 public QiniuFileSystem(QiniuBucketSettings bucketSettings, IFileSystemIndex index)
 {
     Settings = bucketSettings;
     RootDirectory = new QiniuDirectory("/", this);
     Index = index;
 }
Beispiel #3
0
 public QiniuFileSystem(QiniuBucketSettings bucketSettings)
     : this(bucketSettings, new LocalFileSystemIndex(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Data\\Qiniu", bucketSettings.Bucket)))
 {
 }