internal FileInfo(IDevice device, IDeviceObject deviceObject, string path) { _device = device; _deviceObject = deviceObject; _path = path; _creationTime = DateTime.MinValue; }
/// <summary> /// delete the directory in the file system /// </summary> public void Delete() { if (Exists) { _device.Delete(_path); _deviceObject = null; // force it to be refreshed } }
protected override void When() { DeviceObject = Device.GetObjectFromPath("Internal Storage"); }
internal DirectoryInfo(IDevice device, IDeviceObject deviceObject, string pathToObject) { _device = device; _deviceObject = deviceObject; _path = pathToObject; }
protected override void When() { // The storage object will normally be at the root, but we need to allow for it to be lower in the tree DeviceObject = Device.GetRootStorageObjectFromPath(@"x\y\Internal Storage\Foo\Bar"); }
internal DriveInfo(IDevice device, IDeviceObject storageObject) { _device = device; _storageObject = storageObject; }