[扩展库] fsys.journal 扩展库 - 仿everything快速搜索文件
http://www.aau.cn/thread-9460-1-1.html
import fsys;
import fsys.journal;
import sys.volume;
import console;
var drives = sys.volume.getLogicalDrives()
for(idx,drive in drives) {
console.log(idx,drive) //获取所有分区
}
var drive = fsys.getDrive() //当前分区
var journal,err = fsys.journal(drive); //创建USN日志
console.log("请稍候数分钟,正在分析USN日志......")
var usnData = journal.getUsnData()
journal.delete();
console.log("正在测试搜索 AAuto")
for(fileReferenceNumber,fileInfo in usnData){
if( ..string.find(fileInfo.name,"AAuto") ){
console.log("找到文件:",journal.getFullPath(usnData,fileReferenceNumber) )
}
}
console.log("已完成")
import fsys;
fsys.copy( "/journal/","~/lib/fsys/" );
import ide;
ide.refreshStdLib();
import win;
win.msgboxTimeout("fsys.journal扩展库已安装成功","快手(AAuto Quicker) - fsys.journal 扩展库安装程序",1000)