Skip to content
Snippets Groups Projects
Commit c649aa82 authored by echicken's avatar echicken :chicken:
Browse files

Removed unnecessary var.

parent a65e8c61
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,8 @@ require('filebase.js', 'FileBase');
require('file_size.js', 'file_size_str');
function count_files(dir) {
var n = 0;
const fn = format("%s%s.ixb", file_area.dir[dir].data_dir, dir);
if (!file_exists(fn)) return n;
if (!file_exists(fn)) return 0;
return Math.floor(file_size(fn) / 22); // ixb record length is 22 bytes
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment