Skip to content

Commit 5c9b591

Browse files
committed
Use findNode on createDirectory
1 parent af804e2 commit 5c9b591

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/00/filesystem.asm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,7 @@ _: pop af
624624
;; A: Flash page (on success); Error code (on failure)
625625
;; HL: Address relative to 0x4000 (on success)
626626
createDirectory:
627-
call directoryExists
628-
call nz, fileExists ; TODO: Make a combined "entryExists" or something?
627+
call findNode
629628
jr nz, _
630629
or 1
631630
ld a, errAlreadyExists

0 commit comments

Comments
 (0)