This repository was archived by the owner on Feb 20, 2025. It is now read-only.
Skip directory paths when backup#44
Open
bigfox wants to merge 1 commit into
Open
Conversation
Owner
|
Ah, I see… so this could be a FreeBSD difference that's causing trouble and not a permissions problem. Yes, it sounds like this would be a worthwhile PR to include, thank you. I'll do some independent testing when I have time here, and will likely merge this (and push a new release) if everything looks good. Thanks again! |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @tatewake,
I follow up on the conversation in #43 .
From a logical point of view, i think this patch is appropriate.
RecursiveDirectoryIteratortraverses all paths, including directory path itself, but Tar class support add file only (seeTar::addFilesource code). So check if path is directory is ok.Patch fix my issue #43 on my Dokuwiki instance, running on hosting with FreeBSD (12.1-STABLE) and PHP 7.4.8 (tested also with PHP 5.6). It is possible that FreeBSD will be the reason, why the function
fread()return non-empty string for directory path (used here inTar::addFile).It solved the problem for me, maybe it could help someone else.
OS:
FreeBSD 12.1-STABLEPHP:
7.4.8Dokuwiki:
Release 2020-07-29 "Hogfather"Plugin version:
2020-10-21Thanks
P.S. It solved the problem for me, it could help someone else ;-)