Last active
December 2, 2015 12:54
-
-
Save mfrazi/357c9c8e08ac52e43966 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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