Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Sep 26, 2024
1 parent 042f560 commit c7ef21d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions runtime/fs_fake.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,8 @@ MlFakeDevice.prototype.exists = function (name, do_not_lookup) {
var name_slash = this.slash(name);
if (this.content[name_slash]) return 1;
// Check if a file exists
if (do_not_lookup) {
return 0;
} else {
this.lookup(name);
return this.content[name] ? 1 : 0;
}
if (!do_not_lookup) this.lookup(name);
return this.content[name] ? 1 : 0;
};
MlFakeDevice.prototype.isFile = function (name) {
if (this.exists(name) && !this.is_dir(name)) {
Expand Down

0 comments on commit c7ef21d

Please sign in to comment.