Advertisement
pharmokan

common file manips

May 12th, 2020
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. read csv
  2. save csv
  3. readCSV(filename)
  4. JSONCSV(filename)
  5. getJSONfromCSV(filename)
  6. saveJSONasCSV(data,filename)
  7. saveCSV(data,filename)
  8.  
  9. list files without dirs/get filenames
  10. ls(dir)
  11. getFilesAsArrayIn(dir)
  12. getFilesIn(dir)
  13. ArrayOfFilesIn(dir)
  14.  
  15. delete files
  16. delete all
  17. deleteAllIn(dir)
  18. delete(source,dir)
  19.  
  20. rename file
  21. rename(source,target)
  22.  
  23. copy file to
  24. copy all
  25. copy(source,target)
  26. copyAll(dirsource,dirtarget)
  27.  
  28. move file to
  29. move all
  30. move(source,tartget)
  31. moveAll(dirsource,dirtarget)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement