You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right, this is a limitation of the current implementation. The files are copied with mcopy. And there is no way to tell mcopy to copy the content of a directory toplevel into the vfat. So we basically copy ${mountpoint}/* and that obviously misses any hidden files. And there is no simple way to change that.
We would probably need to iterate manually and copy the files explicitly.
I think that if can ensure that it is bash that interprets the command, we could make it work:
/tmp/test$ ls -al
total 0
drwxr-xr-x 4 ravi ravi 120 Nov 1 14:29 .
drwxrwxrwt 52 root root 1520 Nov 1 14:28 ..
-rw-r--r-- 1 ravi ravi 0 Nov 1 14:29 .file-with-dot
drwxr-xr-x 2 ravi ravi 60 Nov 1 14:29 .hidden-dir
drwxr-xr-x 2 ravi ravi 60 Nov 1 14:30 normal-dir
-rw-r--r-- 1 ravi ravi 0 Nov 1 14:29 normal-file
$ echo *
normal-dir normal-file
$ ( shopt -s dotglob ; echo * ; )
.file-with-dot .hidden-dir normal-dir normal-file
I'm using
mountpoint
to fill vfat partition with content, hoever hidden files (with dot at the beginning) are not copied. How to copy them?The text was updated successfully, but these errors were encountered: