try to automatically find shared data dirs in system-wide paths

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-05-05 11:27:19 +02:00
parent 61947e67ae
commit 80da2dc722
16 changed files with 63 additions and 53 deletions

View File

@@ -9,3 +9,10 @@ import (
func isCrossDeviceError(err error) bool {
return errors.Is(err, windows.ERROR_NOT_SAME_DEVICE)
}
func isInvalidNameError(err error) bool {
if err == nil {
return false
}
return errors.Is(err, windows.ERROR_INVALID_NAME)
}