Example #1
0
 public PutioFolder(PutioFsDataProvider data_provider, PutioFolder parent)
     : base(data_provider, parent)
 {
     if (!this.IsDirectory)
     {
         throw new Exception("Can not create a directory entry for a non directory item.");
     }
 }
Example #2
0
 public PutioFsItem(PutioFsDataProvider data_provider, PutioFolder parent)
 {
     this.DataProvider = data_provider;
     if (parent != null)
     {
         this.Fs = parent.Fs;
     }
 }
Example #3
0
 protected PutioFsItem(PutioFileSystem fs)
 {
     Item item = new Item();
     item.Id = "0";
     item.Name = "";
     item.IsDirectory = true;
     this.Fs = fs;
     this.DataProvider = new PutioFsApiDataProvider(this.Fs, item);
     this.Parent = null;
 }
Example #4
0
        protected PutioFsItem(PutioFileSystem fs)
        {
            Item item = new Item();

            item.Id           = "0";
            item.Name         = "";
            item.IsDirectory  = true;
            this.Fs           = fs;
            this.DataProvider = new PutioFsApiDataProvider(this.Fs, item);
            this.Parent       = null;
        }
Example #5
0
 public PutioFile(PutioFsDataProvider data_provider, PutioFolder parent)
     : base(data_provider, parent)
 {
     this.Cache = new LocalFileCache(this);
 }
Example #6
0
 public PutioFile(PutioFsDataProvider data_provider, PutioFolder parent)
     : base(data_provider, parent)
 {
     this.Cache = new LocalFileCache(this);
 }
Example #7
0
 public PutioFsItem(PutioFsDataProvider data_provider, PutioFolder parent)
 {
     this.DataProvider = data_provider;
     if (parent != null)
         this.Fs = parent.Fs;
 }
Example #8
0
 public PutioFolder(PutioFsDataProvider data_provider, PutioFolder parent)
     : base(data_provider, parent)
 {
     if (!this.IsDirectory)
         throw new Exception("Can not create a directory entry for a non directory item.");
 }