can now create files and check for them

main
m455 2018-04-06 10:34:40 -04:00
parent 4ec14ada08
commit 11d2404fdd
1 changed files with 8 additions and 2 deletions

View File

@ -170,7 +170,10 @@
(prompt-user messages 'choose-y/n)])))
(define (add-item args)
(if (check-for-folder)
(if
(and
(check-for-folder)
(check-for-file))
(begin
(d-hash-ref messages 'item-added-prefix)
(d-vector-ref args 1)
@ -180,7 +183,10 @@
(d-hash-ref messages 'try-initializing))))
(define (remove-item args)
(if (check-for-folder)
(if
(and
(check-for-folder)
(check-for-file))
(begin
(d-hash-ref messages 'item-removed-prefix)
(d-vector-ref args 1)