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.

Is there a way to clone a file and record?

See original GitHub issue

As title, with a FileCursor is there something like .clone() to clone the file record and file itself, then return the new FileCursor?

I’m going to invent it but I want to make sure I’m not reinventing the feature. You can’t just Collection.insert(FileCursor) just like CollectionFS right?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
urakagicommented, May 13, 2020

I guess for this code it’s path rather than _storagePath? Thank you!

1reaction
dr-dimitrucommented, May 12, 2020

Feel free to open new ticket for .copy() or .clone() method

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I create a copy of a file? » Files & Sharing » Windows »
There are many ways to copy a file in Windows. The simplest way is by using the Copy command which can be accessed...
Read more >
How to Clone a Hard Drive - PCMag
1. Connect Your Secondary Drive 2. Windows Users: Clone Your Drive with Macrium Reflect Free 3. Start Cloning Process
Read more >
Fastest way to copy files in Windows 10 - YouTube
Need to copy millions of files in Windows 10 - here's how to do it fast!
Read more >
How To: Clone files and documents in Salesforce ...
Super Clone Pro has the ability to clone the file's reference to the document. This is called the ContentDocumentLink. After cloning, both the...
Read more >
How to make a copy of a Word document: complete guide
On Windows, we call it copy-paste. Right-click the original file and choose Copy (Ctrl+C). How to make a copy of a Word document:...
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