mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-28 00:37:16 +00:00
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('.')
|