public void DeleteFolderOk() { MtpDirectory mtpDirectory = new MtpDirectory(); mtpDirectory.CreateDirectory(@"Xperia XA\SD Card\Music\abc1\abc2\abc3"); Assert.True(mtpDirectory.Exists(@"Xperia XA\SD Card\Music\abc1\abc2\abc3")); mtpDirectory.Delete(@"Xperia XA\SD Card\Music\abc1\abc2\abc3", false); Assert.False(mtpDirectory.Exists(@"Xperia XA\SD Card\Music\abc1\abc2\abc3")); Assert.True(mtpDirectory.Exists(@"Xperia XA\SD Card\Music\abc1\abc2")); }
public void DeleteNoPath() { MtpDirectory mtpDirectory = new MtpDirectory(); mtpDirectory.Delete(string.Empty, true); }