ghost information—now you see ’em, now you do not?


I do not know what to name this. I’ve an exterior drive which the system refuses to make writable. A lot of the information on it are already on my inner drive. To avoid wasting time and house, I made a listing of the information that are not and wrote a script to create the directories and replica the information. I included some debugging printouts within the script.

mkdir -p "~/tempdir/PATH" provides no error message.

echo :~/tempdir/PATH" exhibits the trail is right

cp "DISK/PATH/FILE" "~/tempdir/PATH/FILE" says "DISK/PATH/FILE" would not exist, but

wc "~/tempdir/PATH/FILE" exhibits an inexpensive measurement for the kind of file. However instantly after,

ls -la "~/tempdir/PATH/FILE" says no such file or listing.

This inconsistency repeats for each file within the checklist. chmod -RN, xattr -rc, and such have been used to make sure it wasn’t a permissions problem (though there have been no permission error messages).

HOW is it attainable for cp to say the supply would not exist, but wc is ready to learn the vacation spot? After which for ls to say the vacation spot would not exist?

MacOS 12.5 / zsh with "oh-my-zsh"