Top "Copy" questions

To copy is to create a duplicate of an object without destroying the original.

Move / Copy File Operations in Java

Is there a standard Java library that handles common file operations such as moving/copying files/folders?

java file copy move
What is the difference between `sorted(list)` vs `list.sort()`?

list.sort() sorts the list and replaces the original list, whereas sorted(list) returns a sorted copy of the list, …

python list sorting copy in-place
Copy output of a JavaScript variable to the clipboard

I have no knowledge of JavaScript, but I managed to put this code together using bits and bolts from various …

javascript copy clipboard
Copying sets Java

Is there a way to copy a TreeSet? That is, is it possible to go Set <Item> itemList; …

java copy set
Git copy file preserving history

I have a somewhat confusing question in Git. Lets say, I have a file dir1/A.txt committed and git …

git file copy filenames
How to copy std::string into std::vector<char>?

Possible Duplicate: Converting std::string to std::vector<char> I tried: std::string str = "hello"; std::vector<…

c++ string vector copy
How to copy directory recursively in python and overwrite all?

I'm trying to copy /home/myUser/dir1/ and all its contents (and their contents, etc.) to /home/myuser/dir2/ in …

python copy distutils
scp copy directory to another server with private key auth

is there something wrong with this scp command ? scp -C -i ./remoteServerKey.ppk -r /var/www/* [email protected]:/var/www I …

linux ssh copy file-transfer scp
Git: copy all files in a directory from another branch

How do I copy all files in a directory from another branch? I can list all of the files in …

git file copy branch
How to recursively copy directories starting with "abc" on Linux/Unix?

I have a directory ~/plugins/ and inside there are many sub-directories. If I wanted to create a backup somewhere else …

linux unix copy rsync