API about files list #906
hugo529100
started this conversation in
General
Replies: 2 comments 1 reply
-
seem find it |
Beta Was this translation helpful? Give feedback.
0 replies
-
/~https://github.com/rejetto/hfs/wiki/APIs starting point for this stuff |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use AI coding an button js for sync the files list auto or by hand. not the whole pages refresh .
so i need the filelist api (but didnt know how to made it )
<style> #refresh-btn { padding: 5px 10px; font-size: 14px; } </style>hope can made it work
▤
<script> // 文件列表容器选择器 const FILE_LIST_SELECTOR = 'ul.dir'; // 更新间隔(毫秒) const UPDATE_INTERVAL = 30000; // 文件项模板生成函数 function createFileItem(file) { return `Beta Was this translation helpful? Give feedback.
All reactions