Esempio n. 1
0
 public bool CreateItem(RemoteDriveItem item)
 {
     if (this.LoggedIn())
     {
         return(item.Localize(this.PathResolver).EnsureParents(this.PathResolver).CreateOrUpdate());
     }
     return(false);
 }
Esempio n. 2
0
 public bool DeleteItem(RemoteDriveItem item)
 {
     if (this.LoggedIn())
     {
         return(item.Localize(this.PathResolver).Delete());
     }
     return(false);
 }
Esempio n. 3
0
 public bool MoveItem(RemoteDriveItem item, string newPath)
 {
     if (this.LoggedIn())
     {
         item.Localize(this.PathResolver).MoveTo(this.PathResolver.Resolve(newPath));
         return(true);
     }
     return(false);
 }
Esempio n. 4
0
 public bool IsSimilarTo(RemoteDriveItem other)
 {
     if (this.Name == other.Name)
     {
         if (this.Length == other.Length)
         {
             this.CompareState = other.CompareState = RemoteDriveCompareStates.NameAndSizeMatches;
         }
         else
         {
             this.CompareState = other.CompareState = RemoteDriveCompareStates.NameMatches;
         }
         return(true);
     }
     return(false);
 }