We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0 parents commit 0d77f36Copy full SHA for 0d77f36
README.md
@@ -0,0 +1,3 @@
1
+This is a simple Python program to copy files on terminal a bit faster than usual.
2
+
3
+Limitation: It can not copy files large files(depends on the RAM).
copy.py
@@ -0,0 +1,17 @@
+import sys
+import os
+fname = sys.argv[1]
4
+address = sys.argv[2]
5
+owd = os.getcwd()
6
+f = open(fname,"rb")
7
+data = f.read()
8
+os.chdir(address)
9
+o = open(fname,"a+b")
10
+o.write(data)
11
+'''for line in f:
12
+ os.chdir(address)
13
+ o = open(fname,"a+b")
14
+ o.write(line)
15
+ o.close()
16
+ os.chdir(owd)
17
+f.close()'''
0 commit comments