An electron-based WIP aesthetic file explorer ^^
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
FileKade/scripts/fileview/checkdir.js

14 lines
529 B

const load = require('./load/load');
const sort = require('./load/sort');
const lightRefresh = require("./lightrefresh");
module.exports = () => {
if (!window.kade.cpath.length || !window.kade.cdir.length) {return;}
window.kade.chdir = [];
load(true);
sort(undefined, true);
if (JSON.stringify(window.kade.cdir) !== JSON.stringify(window.kade.chdir)) {
//console.log('Detected directory updates.', JSON.stringify(window.kade.cdir), JSON.stringify(window.kade.chdir));
lightRefresh();
}
};