shutil: Decided to reimplement, start with shutil().

pull/118/head
Paul Sokolovsky 2014-05-14 21:55:20 +03:00
rodzic f972957f99
commit 2db9858ffe
2 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -1,3 +1,3 @@
srctype=dummy
srctype=micropython-lib
type=module
version=0.0.1
version=0.0.2

Wyświetl plik

@ -0,0 +1,9 @@
# Reimplement, because CPython3.3 impl is rather bloated
import os
def rmtree(top):
for path, dirs, files in os.walk(top, False):
for f in files:
os.unlink(path + "/" + f)
os.rmdir(path)