Lord_Dark199

PyScript

Jan 7th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #coding:utf-8
  2. #PyScript
  3. #2015
  4. # by Igor Mikhaylov ^v^
  5. #vk.com/lord_darks
  6. #by SymbiSoft
  7. import os
  8. import shutil
  9. def copy(a,b):
  10.   shutil.copy(a,b)
  11. #####
  12. def workspace():
  13.    ws = os.getcwd()
  14.    print(ws)
  15. #####
  16. def mkdir(q):
  17.   os.mkdir(q)
  18. #####
  19. def mkdirs(w):
  20.   os.mkdirs(w)
  21. #####
  22. def listdir(e):
  23.   os.listdir(e)
  24. #####
  25. def stat(r):
  26.   os.stat(r)
  27. #####
  28. def rename(t, y):
  29.   os.rename(t, y)
  30. #####
  31. def rmdir(u):
  32.   os.rmdir(u)
  33. #####
  34. def chdir(i):
  35.   os.chdit(i)
  36. #####
  37. def copytree(o, p):
  38.   shutil.copytree(o,p)
  39. #####
  40. def move (s, d):
  41.   shutil.move(s, d)
  42. #####
  43. def rmtree(f):
  44.   shutil.rmtree(f)
  45. ######
Advertisement
Add Comment
Please, Sign In to add comment