This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
forked from xybu/onedrived-dev
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#17: Add from_local_config and from_cloud_config on LocalDriveConfig
- Loading branch information
Showing
2 changed files
with
69 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
from collections import namedtuple | ||
class LocalDriveConfig: | ||
"""Configuration for the local drive. This is saved on UserContext.DEFAULT_CONFIG_FILENAME.""" | ||
|
||
|
||
LocalDriveConfig = namedtuple('LocalDriveConfig', ('drive_id', 'account_id', 'ignorefile_path', 'localroot_path')) | ||
def __init__(self, drive_id, account_id, ignorefile_path, localroot_path, | ||
from_local_config='dmn', from_cloud_config='dmn'): | ||
self.drive_id = drive_id | ||
self.account_id = account_id | ||
self.ignorefile_path = ignorefile_path | ||
self.localroot_path = localroot_path | ||
self.from_local_config = from_local_config | ||
self.from_cloud_config = from_cloud_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters