mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-05 21:24:44 -06:00
Fix: backup to shared drive root
Allows writing to the drive root using: gcd://driveid@ or gcd://driveid@/ To write to the root of the default user's drive use the special shared drive named 'root': gcd://root@/
This commit is contained in:
@@ -264,6 +264,11 @@ func (storage *GCDStorage) getIDFromPath(threadIndex int, filePath string, creat
|
||||
fileID = rootID
|
||||
}
|
||||
|
||||
// Write directly to the root of the drive
|
||||
if filePath == "" {
|
||||
return fileID, nil
|
||||
}
|
||||
|
||||
names := strings.Split(filePath, "/")
|
||||
current := ""
|
||||
for i, name := range names {
|
||||
|
||||
Reference in New Issue
Block a user