Skip to content

Commit 840f774

Browse files
committed
and now test should pass
1 parent 0895498 commit 840f774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/db-objects-file/src/lib/objects/objectsInMemFileDB.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ export class ObjectsInMemoryFileDB extends InMemoryFileDB {
627627
}
628628

629629
const location = path.join(this.objectsDir, id, name);
630-
if (fs.existsSync(location)) {
630+
if (fs.existsSync(location) && fs.statSync(location).isDirectory()) {
631631
const dirFiles = fs.readdirSync(location);
632632
for (let i = 0; i < dirFiles.length; i++) {
633633
if (dirFiles[i] === '..' || dirFiles[i] === '.') {

0 commit comments

Comments
 (0)