public void FindOrCreateTest( ) { Device device = GetFirstDevice( ); var path = "/mnt/sdcard/test/delete/"; FileEntry fe = FileEntry.FindOrCreate(device, path); Assert.True(fe.Exists); device.FileSystem.Delete(fe.FullResolvedPath); }
public void FindOrCreateTest( ) { Device device = GetFirstDevice( ); FileListingService fileListingService = new FileListingService(device); FileSystem fileSystem = new FileSystem(device); var path = "/mnt/sdcard/test/delete/"; FileEntry fe = FileEntry.FindOrCreate(device, fileListingService, path); Assert.IsTrue(fe.Exists); fileSystem.Delete(fe.FullResolvedPath); }