Skip to content

Instantly share code, notes, and snippets.

@mfrazi
Last active December 2, 2015 12:54
Show Gist options
  • Save mfrazi/357c9c8e08ac52e43966 to your computer and use it in GitHub Desktop.
Save mfrazi/357c9c8e08ac52e43966 to your computer and use it in GitHub Desktop.
import os
def DEL(path)
os.remove(path)
# manggil fungsi DEL, cara ngeceknya
DEL("/ini/yang/dihapus.txt")
# Kalau yang di atas itu cuma buat ngapus file, gak bisa folder.
# Jadi nanti di dalam fungsi DEL itu bisa ngapus buat file sama folder.
# Jadi harus di cek, pathnya itu file atau folder baru dihapus sesuai caranya masing2
# Kalau bisa kasih juga tulisan, yakin gak mau ngapus file/foldernya.
# Nanti bikin semua fungsinya, yang berhubungan sama file dan foldernya kaya hapus, list, pidah direktori, dkk
# Kalau yang download sama uploadnya gak usah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment