mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 12:56:36 +02:00
onedrive: graph: Refine config keys naming
This commit is contained in:
parent
e114be11ec
commit
1749fb8ebf
@ -38,8 +38,8 @@ const (
|
|||||||
maxSleep = 2 * time.Second
|
maxSleep = 2 * time.Second
|
||||||
decayConstant = 2 // bigger for slower decay, exponential
|
decayConstant = 2 // bigger for slower decay, exponential
|
||||||
graphURL = "https://graph.microsoft.com/v1.0"
|
graphURL = "https://graph.microsoft.com/v1.0"
|
||||||
configGraphID = "graphID"
|
configDriveID = "drive_id"
|
||||||
configDriveType = "driveType"
|
configDriveType = "drive_type"
|
||||||
driveTypePersonal = "personal"
|
driveTypePersonal = "personal"
|
||||||
driveTypeBusiness = "business"
|
driveTypeBusiness = "business"
|
||||||
driveTypeSharepoint = "documentLibrary"
|
driveTypeSharepoint = "documentLibrary"
|
||||||
@ -210,7 +210,7 @@ func init() {
|
|||||||
log.Fatalf("Cancelled by user")
|
log.Fatalf("Cancelled by user")
|
||||||
}
|
}
|
||||||
|
|
||||||
config.FileSet(name, configGraphID, finalDriveID)
|
config.FileSet(name, configDriveID, finalDriveID)
|
||||||
config.FileSet(name, configDriveType, rootItem.ParentReference.DriveType)
|
config.FileSet(name, configDriveType, rootItem.ParentReference.DriveType)
|
||||||
},
|
},
|
||||||
Options: []fs.Option{{
|
Options: []fs.Option{{
|
||||||
@ -361,7 +361,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get the graphID part from the config file
|
// get the graphID part from the config file
|
||||||
driveID := config.FileGet(name, configGraphID, "")
|
driveID := config.FileGet(name, configDriveID, "")
|
||||||
driveType := config.FileGet(name, configDriveType)
|
driveType := config.FileGet(name, configDriveType)
|
||||||
|
|
||||||
root = parsePath(root)
|
root = parsePath(root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user