]> BookStack Code Mirror - system-cli/commit
Improved symlink support for backup/restore
authorDan Brown <redacted>
Mon, 22 May 2023 08:03:59 +0000 (09:03 +0100)
committerDan Brown <redacted>
Mon, 22 May 2023 08:03:59 +0000 (09:03 +0100)
commite6d2f17dac06a3a0431a27dda54aeae4de553f47
treefaf9d34cbb7be77276641f0f4a92ea3586b793bb
parent88530332093fee51148b04c2f16a1b8f638b1211
Improved symlink support for backup/restore

Updates filesystem iteration to specifically handle symlinks when
iterating through files, and uses the file's real path when fetching
their contents.
Fixes #10
Adds test to cover backup case.
src/Commands/BackupCommand.php
src/Services/AppLocator.php
src/Services/Directories.php
tests/Commands/BackupCommandTest.php
tests/Commands/RestoreCommandTest.php