cloudcmd: Error on copying large folders

  • Version : v14.3.8 (tested it on older v14 release as well)
  • Node Version: v12.16.2
  • OS: ubuntu 18
  • Browser name/version: Chrome v80.0.3987.132

While copying larger folders with a lot of files and subfolders I often run into this error:

events.js:287
      throw er; // Unhandled 'error' event
      ^

Error: EISDIR: illegal operation on a directory, open '[random-subfolder-at-target-location]'
Emitted 'error' event on WriteStream instance at:
    at errorOrDestroy ([project_home]/node_modules/readable-stream/lib/internal/streams/destroy.js:98:101)
    at WriteStream.onerror ([project_home]/node_modules/readable-stream/lib/_stream_readable.js:704:47)
    at WriteStream.emit (events.js:310:20)
    at internal/fs/streams.js:321:12
    at FSReqCallback.oncomplete (fs.js:155:23) {
  errno: -21,
  code: 'EISDIR',
  syscall: 'open',
  path: '[random-subfolder-at-target-location]'
}

Tried copying the same folder multiple times it seems to happen at a different folder every time.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Tested it twice with the script and 5 times in cloudcmd, itโ€™s working now. Thank you!

Ran it a few times, here are 2 results, output ended up being a few mb so i had to zip it. https://drive.google.com/open?id=1rO03WjzrKGvKentKOK9NK5cdtV2rbtQf

You are right, I should have given you an example as well. ๐Ÿ˜ƒ I downloaded magento 2 from github ( https://github.com/magento/magento2/archive/2.4-develop.zip ), started up cloudcmd without any config and tried copying the magento2-2.4-develop folder from Downloads to Pictures. That gives me an error every time.