mirror of https://github.com/arendst/Tasmota.git
17 lines
331 B
Plaintext
17 lines
331 B
Plaintext
|
import os
|
||
|
|
||
|
def scandir(path)
|
||
|
print('path: ' + path)
|
||
|
for name : os.listdir(path)
|
||
|
var fullname = os.path.join(path, name)
|
||
|
if os.path.isfile(fullname)
|
||
|
print('file: ' + fullname)
|
||
|
else
|
||
|
print('path: ' + fullname)
|
||
|
scandir(fullname)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|
||
|
scandir('.')
|