I copied some files from an external drive and now they appear with a yellow background under my ZSH shell on OSX. I believe that its a permissions thing as the normal ones display "drwxr-xr-x" and the ones with yellow don't have the missing permissions i.e. "drwxrwxrwx"
here is an example
total 24 drwxr-xr-x 21 martin staff 714B Aug 4 00:10 . drwxr-xr-x+ 63 martin staff 2.1K Aug 5 18:50 .. -rw-r--r--@ 1 martin staff 10K Aug 4 00:24 .DS_Store drwxrwxrwx 9 martin staff 306B Jul 31 00:44 Tempa drwxrwxrwx 5 martin staff 170B Jul 11 21:31 XCode drwxrwxrwx 5 martin staff 170B Jul 11 21:31 Items drwxr-xr-x 21 martin staff 714B Jul 31 09:13 code-test ..
I you notice above there are 2 items that display without the yellow background. This is .DS_Store file and code-test directory. Actually its worth noting that inside a directory that has a yellow background i.e. "XCode" I have a load more files and directories which have the same issue.
Why do the copied files have these permissions? What do the missing permissions mean? And of course how to fix it, but of course fix it recursively, as it seems inside each effected directory the files and other directories also have the same issue.