Skip to content

use pathlib consequently to avoid incorrect filepaths #166

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

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

trondth
Copy link
Contributor

@trondth trondth commented Feb 10, 2025

In upload-sync, listing local files in subdirs added an extra slash. This lead to deleting files in upload dir every second time filesync ran. This fix makes use of pathlib similar to previous pr addressing remote files.
This pr also uses switches to using pathlib for other paths found by a simple search in the code base.

Copy link

Triggered from #166 by @​trondth.

Checking if we can fast forward master (64ac150) to fix_filepaths (42135cd).

Target branch (master):

commit 64ac150883fed6be3170ead6015942ac67c0481a (HEAD -> master, tag: v3.7.3, origin/master, origin/HEAD)
Author: Trond Thorbjørnsen <[email protected]>
Date:   Fri Feb 7 10:25:09 2025 +0100

    use path from page in file_api_url, when page is not empty

Pull request (fix_filepaths):

commit 42135cd38ff58b11c807341e4cd4a879cfae4ac2 (pull_request/fix_filepaths)
Author: Trond Thorbjørnsen <[email protected]>
Date:   Mon Feb 10 10:35:53 2025 +0100

    use pathlib consequently to avoid incorrect filepaths

It is possible to fast forward master (64ac150) to fix_filepaths (42135cd). If you have write access to the target repository, you can add a comment with /fast-forward to fast forward master to fix_filepaths.

@trondth trondth merged commit 1d8fc2c into master Feb 10, 2025
3 checks passed
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.

2 participants