kopia lustrzana https://github.com/micropython/micropython-lib
shutil: Decided to reimplement, start with shutil().
rodzic
f972957f99
commit
2db9858ffe
|
@ -1,3 +1,3 @@
|
|||
srctype=dummy
|
||||
srctype=micropython-lib
|
||||
type=module
|
||||
version=0.0.1
|
||||
version=0.0.2
|
||||
|
|
|
@ -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)
|
Ładowanie…
Reference in New Issue