mirror of
https://gitlab.com/eql/lqml.git
synced 2026-01-03 07:42:27 -08:00
add example 'cl-repl'
This commit is contained in:
parent
88e7602917
commit
f14970c1e1
57 changed files with 6469 additions and 0 deletions
12
examples/cl-repl/cgi-bin/qml-last-modified.py
Executable file
12
examples/cl-repl/cgi-bin/qml-last-modified.py
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
|
||||
secs = 0
|
||||
|
||||
for root, dirs, files in os.walk('qml'):
|
||||
for name in files:
|
||||
if name.endswith(".qml"):
|
||||
secs += int(os.path.getctime(os.path.abspath(os.path.join(root, name))))
|
||||
|
||||
print("Content-type:text/plain\r\n\r\n" + str(secs))
|
||||
Loading…
Add table
Add a link
Reference in a new issue