Skip to content

Conversation

@erikjv
Copy link
Contributor

@erikjv erikjv commented Dec 5, 2025

No description provided.

@update-docs
Copy link

update-docs bot commented Dec 5, 2025

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.

@erikjv erikjv marked this pull request as draft December 5, 2025 17:19
@erikjv erikjv force-pushed the work/remove-OC10SyncRoot branch from feb6a6c to 31eb186 Compare December 8, 2025 16:34
@erikjv erikjv changed the title WIP: remove OC10SyncRoot Remove OC10SyncRoot Dec 8, 2025
@erikjv erikjv force-pushed the work/remove-OC10SyncRoot branch 2 times, most recently from d1d723a to 1b4d322 Compare December 12, 2025 14:17
@erikjv erikjv marked this pull request as ready for review December 12, 2025 15:36
@erikjv erikjv requested a review from modSpike December 12, 2025 15:36
@erikjv erikjv force-pushed the work/remove-OC10SyncRoot branch 3 times, most recently from d6059ec to 275d3bf Compare December 18, 2025 13:03
@erikjv erikjv force-pushed the work/remove-OC10SyncRoot branch from 275d3bf to f0c3828 Compare December 18, 2025 14:00
Also simplify the path validity checks.
@erikjv erikjv force-pushed the work/remove-OC10SyncRoot branch from f0c3828 to 30c343f Compare December 18, 2025 14:02
/**
* @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
Copy link
Contributor

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()) {
Copy link
Contributor

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)
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants