Closed valkuc closed 12 months ago
Hmm, looks like changing .lstrip('.').lstrip('/')
to .lstrip('./')
on lines 112 and 136, that should solve that problem. Could you try this and report back?
Looks like did not help. Nothing changed, same error. Actually, I'm thinking that it's a good idea to skip files (and directories) with name starting from "." and do not include them in FrogFs image. What do you think?
Btw, I tried to implement such exclusion by adding
if reldir.startswith('.'):
continue
at lines 113 and 139, but this not helped and I'm stuck. My Python knowledge is below zero :)
fixed in 1a3d571bbe23db53e586a6211a9917324a5a3917
Thanks!
Thanks, now there is no errors and the directory with file is added to FrogFs image. Could you please tell me, is it possible to exclude any or specific directory from image?
You can do the following, which glob matches any files and folders with that name:
filters:
'path/to/.folder_name*':
- discard
I'll create a bug, because you should be able to just do the following:
filters:
'path/to/.folder_name':
- discard
But that is currently broken.
Looks like this doesn't work either. In the log:
- Stage 1
- .test-data/state.json
- compress deflate... skipped
but actually the file is included as I see it in binary.
I'll look into this. In the meantime, can you open a new issue with a snippet of your yaml?
Yep,will do
Hello. The directory structure is like this:
/.test_dot_dir/.test.html
It looks like the dot is removed from directory name in mkfrogfs.py