From e9336903d1404f83251be0cfc215ecbae4b45976 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 18 Mar 2025 13:40:08 +0100 Subject: [PATCH] Stow: check if file is folder, todo --- bin/bin/stow | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/bin/stow b/bin/bin/stow index 283440b..d2c6e68 100755 --- a/bin/bin/stow +++ b/bin/bin/stow @@ -61,6 +61,10 @@ foreach ($files as $file) { line("File $targetFile is already stowed from $stowFile"); continue; } + if(is_dir($targetFile)) { + line("File $targetFile is a folder, todo: recurse through existing folders"); + continue; + } if (is_file($targetFile)) { if ($backup) { $backFile = $targetFile . '.bak';