Beispiel #1
0
 public PathOf(PathOption option, FileSystemType fsType)
 {
     _pathDic = option.Default.Select(x => x.Key)
                .Concat(option[fsType].Select(x => x.Key))
                .Distinct()
                .Select(key => new
     {
         Key   = key,
         Value = option[fsType].ContainsKey(key) ? option[fsType][key] : option.Default[key],
     })
                .ToDictionary(x => x.Key, x => x.Value);
 }
Beispiel #2
0
 public DropboxFileSystem(PathOption pathOption, DropboxClient client, Encoding encoding = null)
 {
     _pathOf   = new PathOf(pathOption, FileSystemType.Dropbox);
     _client   = client;
     _encoding = encoding ?? new UTF8Encoding(false);
 }
 public LocalFileSystem(PathOption pathOption, Encoding encoding = null)
 {
     _pathOf   = new PathOf(pathOption, FileSystemType.Local);
     _encoding = encoding ?? new UTF8Encoding(false);
 }