Пример #1
0
 internal FileInfo(IDevice device, IDeviceObject deviceObject, string path)
 {
     _device       = device;
     _deviceObject = deviceObject;
     _path         = path;
     _creationTime = DateTime.MinValue;
 }
Пример #2
0
 /// <summary>
 /// delete the directory in the file system
 /// </summary>
 public void Delete()
 {
     if (Exists)
     {
         _device.Delete(_path);
         _deviceObject = null;   // force it to be refreshed
     }
 }
Пример #3
0
 protected override void When()
 {
     DeviceObject = Device.GetObjectFromPath("Internal Storage");
 }
Пример #4
0
 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");
 }
Пример #6
0
 internal DriveInfo(IDevice device, IDeviceObject storageObject)
 {
     _device        = device;
     _storageObject = storageObject;
 }