-
Notifications
You must be signed in to change notification settings - Fork 865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: upload directory with subdirectories [WIP] #624
Conversation
Odd stuff. Just tested it, adding 2 layers of files worked.. fine. Once. Other one.. failed:
Also, I think I've found kinda unrelated bug when adding bigger directory trees: Tested against revision 3ded93e May be that my system has low limits, but worth addressing at some point.
|
@lidel as far as I've tried, there is some kind of limit and I didn't understand it yet because I remember asking someone and there wasn't supposed to be one. I'll try to replicate. |
@lidel trying on linux what happened was:
What I think is that there is some problem updating the pane. I'll solve it 😄 Although the |
60008b7
to
6ec7fb5
Compare
Codecov Report
@@ Coverage Diff @@
## master #624 +/- ##
==========================================
+ Coverage 14.84% 14.92% +0.08%
==========================================
Files 57 57
Lines 896 891 -5
==========================================
Hits 133 133
+ Misses 763 758 -5
Continue to review full report at Codecov.
|
@lidel @olizilla I think b43edb0 actually solves this problem. I created a The I ask you to try this out please and let me know if it works 😄 Edit: this function I just created can be worked to be a bit faster allowing the program to add multiple files at once. For now it is safe and works, but can be faster. I'll work on that on the weekend. Tomorrow I'll probably not be responsive but I'll try to take a look at the notifications and the IRC once in a while. |
I got you some quick feedback before going to 🛌 💤 I got this I tried again, and this time got For the final test I've added my Hope this helps :) |
|
I think this was it. @olizilla gave me the idea of using Although, if I add a dir using |
This works for my small test case that is 2 dirs deep with 3 files. Trying @lidel's test case of adding the ipfs-companion src tree (with node_modules) causes
where
is the simple test case working, which is new and good news ✨ but then there is a new error with the It then continues to try and add all the files, but each one throws a new |
Now I get the same error as @olizilla ( But it is a good news, means we are just missing some way to limit the number of file handlers used in parallel during the add. Seems that Beaker/Dat team had similar problem and |
Well, I'm trying to reproduce it with a simple script and I can't. I noticed that |
Hm.. this does not seem to make any difference, same as #624 (comment) |
Hmm. Can you try adding it manually via a script using jsipfsapi? I can't reproduce the EMFILE error in any Linux virtual machine I have. |
I merged this and I'll open a new issue for the EMFILE errors. |
Fixes #613.