question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on copying large folders

See original GitHub issue
  • 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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
csabadmcommented, Apr 14, 2020

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

1reaction
csabadmcommented, Apr 14, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unspecified Error When Copying a File Folder in Windows 10
Part 1: Possible causes of unspecified error in Windows · 1. The copied files are larger than 4GB · 2. The disk is...
Read more >
How to fix “Error copying file or folder” error? - EASSOS
How to fix “Error copying file or folder” issue? · Solution 1: Format target partition into NTFS or exFAT · Solution 2: Remove...
Read more >
Unspecified Error While Copying Files or Folder in Windows ...
How to fix 'unspecified error' while copying files or folders from an external drive. Follow this post and learn some practical solutions.
Read more >
Folder copy error message when downloading a file that is ...
In the Edit DWORD Value box, click to select the Decimal option. In the box under Value data, type a value that is...
Read more >
Error copying file or folder: Unspecified error in Windows 11/10
Fix-1 Re-register jscript. · Fix-2 Change the Ownership of File or folder- · Fix-3 Compress the file then transfer- · Fix- 4 Disable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found