-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from SamSchott/develop
bump to v1.0.3
- Loading branch information
Showing
37 changed files
with
1,463 additions
and
1,060 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
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,15 +1,12 @@ | ||
|
||
#### Short term: | ||
|
||
* Switch from implicit grant to PKCE OAuth flow as soon as Dropbox supports it (DONE). | ||
* Snap package once core20 is released and kde-neon works on core20. | ||
* CLI autocomplete for paths once there is better support from upstream `click`. | ||
* Update macOS app bundle to Python 3.8 and Qt 5.14. | ||
* Update macOS app bundle to Python 3.8. | ||
|
||
#### Long term: | ||
|
||
* deb and rpm packages: either with Pyinstaller executable or as Python package. | ||
* GUI support for multiple Dropbox accounts. | ||
* Option to install command line scripts from macOS app bundle (DONE). | ||
* Work with upstream `toga` to fix remaining issues for native macOS GUI, | ||
notably memory leak in `rubicon.objc` (DONE). | ||
* Consider using sqlite for index and state. |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ Sync module | |
|
||
.. automodule:: sync | ||
:members: | ||
:private-members: | ||
:show-inheritance: |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
|
||
Config files | ||
============ | ||
|
||
The config files are located at ``$XDG_CONFIG_HOME/maestral`` on Linux (typically | ||
``~/.config/maestral``) and ``~/Library/Application Support/maestral`` on macOS. Each | ||
configuration will get its own INI file with the settings documented below. | ||
|
||
Config values in the sections ``main`` and ``account`` should not be edited manually but | ||
rather through the corresponding CLI commands or GUI options. This is because changes of | ||
these settings require Maestral to perform accompanying actions, e.g., download items | ||
which have been removed from the excluded list or move the local Dropbox directory. | ||
Those will not be performed if the user edits the options manually. | ||
|
||
Changes to the other sections may be performed manually but will only take effect once | ||
Maestral is restarted. Maestral will overwrite the entire config file if any change is | ||
made to one of the options through the ``maestral.config`` module. | ||
|
||
.. code-block:: ini | ||
[main] | ||
# The current Dropbox directory | ||
path = /Users/samschott/Dropbox (Maestral) | ||
# Default directory name for the config | ||
default_dir_name = Dropbox (Maestral) | ||
# List of excluded files and folders | ||
excluded_items = ['/test_folder', '/sub/folder'] | ||
# Config file version (not the Maestral version!) | ||
version = 12.0.0 | ||
[account] | ||
# Unique Dropbox account ID. The account's email | ||
# address may change and is therefore not stored here. | ||
account_id = dbid:AABP7CC5bpYd8cGHqIColDFrMoc9SdhACA4 | ||
[app] | ||
# Level for desktop notifications: | ||
# 15 = FILECHAANGE | ||
# 30 = SYNCISSUE | ||
# 40 = ERROR | ||
# 100 = NONE | ||
notification_level = 15 | ||
# Level for log messages: | ||
# 10 = DEBUG | ||
# 20 = INFO | ||
# 30 = WARNING | ||
# 40 = ERR0R | ||
log_level = 20 | ||
# Interval in sec to check for updates | ||
update_notification_interval = 604800 | ||
# Enable or disable automatic error reports | ||
analytics = False | ||
[sync] | ||
# Interval in sec to perform a full reindexing | ||
reindex_interval = 604800 | ||
# Maximum CPU usage per core | ||
max_cpu_percent = 20.0 |
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
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
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
|
||
State files | ||
=========== | ||
|
||
Maestral saves its persistent state in two files: "{config_name}.index" for the file | ||
index and "{config_name}.state" for anything else. Both files are located at | ||
$XDG_DATA_DIR/maestral on Linux (typically ~/.local/share/maestral) and | ||
~/Library/Application Support/maestral on macOS. Each configuration will get its own | ||
state file. | ||
|
||
|
||
Index file | ||
********** | ||
|
||
The index file contains all the tracked files and folders with their lower-case path | ||
relative to the Dropbox folder and their "rev". Each line contains a single entry, written | ||
as a dictionary ``{path: rev}`` in json format, for example: | ||
|
||
.. code-block:: python | ||
{"/test folder/subfolder/file.txt": "015a4ae1f15853400000001695a6c40"} | ||
If there are multiple entries (lines) which refer to the same path, the last entry | ||
overwrites any previous entries. This allows rapidly updating the rev for a file or folder | ||
by appending a new line to the index file without needing to write an entire file. | ||
|
||
An entry with ``rev == None`` means that any previous entries for this path and its | ||
children should be discarded. | ||
|
||
After a sync cycle has completed, the file is cleaned up and all duplicate or empty | ||
entries are removed. | ||
|
||
|
||
State file | ||
********** | ||
|
||
The state file has the following sections: | ||
|
||
.. code-block:: ini | ||
[account] | ||
email = foo@bar.com | ||
display_name = Foo Bar | ||
abbreviated_name = FB | ||
type = business | ||
usage = 39.2% of 1312.8TB used | ||
usage_type = team | ||
[app] | ||
update_notification_last = 0.0 | ||
latest_release = 1.0.3 | ||
[sync] | ||
cursor = ... | ||
lastsync = 1589979736.623609 | ||
last_reindex = 1589577566.8533309 | ||
download_errors = [] | ||
pending_downloads = [] | ||
recent_changes = [] | ||
[main] | ||
version = 12.0.0 | ||
Notably, account info which can be changed by the user such as the email address is saved | ||
in the state file while only the fixed Dropbox ID is saved in the config file. |
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
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
Oops, something went wrong.