fs.php: add filesystem functions

This commit is contained in:
Zankaria 2025-03-17 23:10:50 +01:00
parent 63ae8f338f
commit 36406a9770

10
inc/functions/fs.php Normal file
View file

@ -0,0 +1,10 @@
<?php
namespace Vichan\Functions\Fs;
function link_or_copy(string $from, string $to) {
if (!\link($from, $to)) {
return \copy($from, $to);
}
return true;
}