mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-26 21:08:45 +08:00
🚀 use ftime to calculate run time
This commit is contained in:
+11
-1
@@ -23,4 +23,14 @@ var file={
|
||||
eof: func(){return io.eof(fd);}
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
var find_all_files=func(path){
|
||||
var dd=unix.opendir(path);
|
||||
var res=[];
|
||||
while(var n=unix.readdir(dd))
|
||||
if(unix.isfile(path~"/"~n))
|
||||
append(res,n);
|
||||
unix.closedir(dd);
|
||||
return res;
|
||||
}
|
||||
Reference in New Issue
Block a user