2018-04-12 18:25:19 +00:00
|
|
|
#lang racket/base
|
|
|
|
|
2018-04-13 06:08:22 +00:00
|
|
|
(require racket/file
|
|
|
|
"config.rkt")
|
2018-04-12 18:25:19 +00:00
|
|
|
|
|
|
|
(provide (all-defined-out))
|
|
|
|
|
|
|
|
(define (check-for-file)
|
2018-04-15 04:15:10 +00:00
|
|
|
(file-exists? path))
|
2018-04-12 18:25:19 +00:00
|
|
|
|
|
|
|
(define (create-file)
|
|
|
|
(let
|
2018-04-15 04:15:10 +00:00
|
|
|
([opened-file
|
|
|
|
(open-output-file
|
|
|
|
path
|
|
|
|
#:mode 'text
|
|
|
|
#:exists 'can-update)])
|
|
|
|
(close-output-port opened-file)))
|
2018-04-12 18:25:19 +00:00
|
|
|
|
|
|
|
(define (check-for-folder)
|
|
|
|
(directory-exists?
|
|
|
|
(expand-user-path
|
|
|
|
(string-append
|
|
|
|
program-path
|
|
|
|
program-directory))))
|
|
|
|
|
|
|
|
(define (create-folder)
|
|
|
|
(make-directory
|
|
|
|
(expand-user-path
|
|
|
|
(string-append
|
|
|
|
program-path
|
|
|
|
program-directory))))
|