Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Rename-a-file/Racket/rename-a-file.rkt
Normal file
12
Task/Rename-a-file/Racket/rename-a-file.rkt
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#lang racket
|
||||
|
||||
(rename-file-or-directory "input.txt" "output.txt")
|
||||
(rename-file-or-directory "docs" "mydocs")
|
||||
|
||||
;; find the filesystem roots, and pick the first one
|
||||
(define root (first (filesystem-root-list)))
|
||||
|
||||
(rename-file-or-directory (build-path root "input.txt")
|
||||
(build-path root "output.txt"))
|
||||
(rename-file-or-directory (build-path root "docs")
|
||||
(build-path root "mydocs"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue