-
Notifications
You must be signed in to change notification settings - Fork 684
Remove OC10SyncRoot #12422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Remove OC10SyncRoot #12422
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
feb6a6c to
31eb186
Compare
d1d723a to
1b4d322
Compare
d6059ec to
275d3bf
Compare
275d3bf to
f0c3828
Compare
Also simplify the path validity checks.
f0c3828 to
30c343f
Compare
| /** | ||
| * @brief Check a path for validity. | ||
| * | ||
| * We do not allow putting a folder inside another folder that is already syncing to a server. We also disallow a space to be put into the default sync root |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this return value mean/contain?
also "we disallow a space to be put into the default sync root" - maybeI am misreading this, but this is precisely what the default sync root is for - for adding local folders per space. maybe..."we disallow using the sync root as the local path for a new space folder" is more specific?
also please move the "docs" from the cpp for this function to here in the header
|
|
||
| const QString userDir = QDir::cleanPath(canonicalPath(path)) + QLatin1Char('/'); | ||
| for (auto f : folders()) { | ||
| for (auto f : FolderMan::instance()->folders()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these "static" functions that use member info (via instance()) should not be static.
| return checkPathValidityRecursive(path, folderType, accountUuid); | ||
| } | ||
|
|
||
| QString FolderMan::checkPathValidityRecursive(const QString &path, NewFolderType folderType, const QUuid &accountUuid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename this for clarity - it is really looking for the first existing folder in the parent hierarchy
No description provided.