diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-27 12:27:07 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-27 12:27:07 +0300 |
| commit | 6e13195f8b041d07308f74f199fb3e1d1cb346cf (patch) | |
| tree | c04b6e70b24ef0ab8aef6ece4a69ef4158943cf5 /Software/Visual_Studio/Tango.Integration/Storage | |
| parent | c2053da2800be48d49d473b3da80954afbcc0a15 (diff) | |
| download | Tango-6e13195f8b041d07308f74f199fb3e1d1cb346cf.tar.gz Tango-6e13195f8b041d07308f74f199fb3e1d1cb346cf.zip | |
Fixed issue with firmware upgrade on Machine Studio.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Storage')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Storage/StorageItem.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Storage/StorageItem.cs b/Software/Visual_Studio/Tango.Integration/Storage/StorageItem.cs index eb7e56adb..6894f7111 100644 --- a/Software/Visual_Studio/Tango.Integration/Storage/StorageItem.cs +++ b/Software/Visual_Studio/Tango.Integration/Storage/StorageItem.cs @@ -22,11 +22,12 @@ namespace Tango.Integration.Storage { get { return System.IO.Path.GetFileName(Path); } } + public String Parent { get { - if (Path == "/") return null; + if (Path == "/" || Path == null) return null; String root = System.IO.Path.GetPathRoot(Path); var parent = Directory.GetParent(Path); |
