From 4d1bbde739180b264b4312278c118a65041e662b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernest=20Sury=C5=9B?= Date: Tue, 15 Aug 2023 21:55:42 +0200 Subject: [PATCH] symlink bugfix --- .../com.quickeye.utility/Editor/MenuItems/SymlinkUtility.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/com.quickeye.utility/Editor/MenuItems/SymlinkUtility.cs b/Packages/com.quickeye.utility/Editor/MenuItems/SymlinkUtility.cs index 6674cf6..55501a4 100644 --- a/Packages/com.quickeye.utility/Editor/MenuItems/SymlinkUtility.cs +++ b/Packages/com.quickeye.utility/Editor/MenuItems/SymlinkUtility.cs @@ -42,7 +42,7 @@ private static void OnProjectWindowItemGUI(string guid, Rect r) { var path = AssetDatabase.GUIDToAssetPath(guid); - if (string.IsNullOrEmpty(path)) + if (string.IsNullOrEmpty(path) || !File.Exists(path)) return; var attributes = File.GetAttributes(path); var nr = IMGUIUtility.CalculateRectAfterLabelText(r, path, true); @@ -253,7 +253,7 @@ private static void ExecuteBashCommand(string command) } } } - + private enum SymlinkType { Junction,