Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mountpoint: how to copy hidden files #214

Open
tiopex opened this issue Mar 16, 2023 · 2 comments
Open

mountpoint: how to copy hidden files #214

tiopex opened this issue Mar 16, 2023 · 2 comments

Comments

@tiopex
Copy link

tiopex commented Mar 16, 2023

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?

@michaelolbrich
Copy link
Member

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.

@Villemoes
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants