Comments (9)
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?
from frogfs.
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?
from frogfs.
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 :)
from frogfs.
fixed in 1a3d571
Thanks!
from frogfs.
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?
from frogfs.
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.
from frogfs.
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.
from frogfs.
I'll look into this. In the meantime, can you open a new issue with a snippet of your yaml?
from frogfs.
Yep,will do
from frogfs.
Related Issues (20)
- `hiyapyco` is currently broken due to change in `markupsafe` HOT 1
- venv doesn't exist in ESP-IDF Python on Windows HOT 1
- please add a branch for v3 HOT 1
- size of gzip files is incorrect HOT 2
- Invalid file position when seeking in heatshrink compressed file
- MicroPython HOT 2
- Compressor ID lookup
- Directory optimization HOT 1
- Benchmark
- support python 3.8? HOT 3
- CONFIG parameter broken in target_add_frogfs (next branch) HOT 1
- mkfrogfs.py directory filters are broken HOT 14
- support for mime types HOT 3
- how to use with VSCode + Platform.io? HOT 4
- publishing at components.espressif.com HOT 3
- suggestion: use project_include.cmake to automatically import frogfs functions HOT 1
- Compile fail ESP32 IDF Eclipse plugin - PATH_MAX not defined HOT 1
- Compiler warning in vfs.c: free' discards 'const' qualifier HOT 1
- IDF build error after reconfigure HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frogfs.