AgustinCB / docker-api

Docker Remote API driver for node.js. It uses the same modem than dockerode, but the interface is promisified and with a fancier syntax.
GNU General Public License v3.0
306 stars 50 forks source link

`EISDIR: illegal operation on a directory` when the src includes subfolders #38

Closed IniZio closed 5 years ago

IniZio commented 6 years ago

I used fs.readdirSync('somewhere') as src in docker build image function, however it returns error if I have subfolders. Seems like the api readfilesync's all filenames, and thought the directory is a file too.

AgustinCB commented 6 years ago

Can you give me steps to reproduce, please? I'm not sure I fully understand how to arrive to the problem.

Thanks!

IniZio commented 6 years ago

Like if the directory structure of 'somewhere' is

|somewhere
|--file1
|--folder2
|----file2.1

It returns error that folder2 is not a file

IniZio commented 5 years ago

𝖂𝖆𝖘𝖙𝖊𝖉