Learn how to copy, move, and create files and folders with clojure.java.io.
- View Offline
- Exercise Files
- [Instructor] Now that we can read exif data…and search for files to operate on,…we can implement the core logic of our program.…Let's start by defining our name space…as image-meta.backend.…Now, in our require expression,…I'll start by pulling in image-meta.exif as exif…so that we can use our namespace we've defined…and I'll also pull in our image-meta.files…and I'll call this one fs for short.…
Now I'll pull in two more, just Clojure library stuff,…clojure.string as str…and the clojure.java.io as io.…I'd like to begin with a function that will…take the name of the directory we want to move our files to…and the list of files we're operating on…and it will figure out the mapping between these two.…We'll call this find-target-filenames…and it'll need to take a target directory…and a list of files.…
This list of files will come from…the find-files function we wrote in the files namespace.…We have several variables to define so I'll make a let…and first, I need to take the files that I'm given…and just have their file names on hand…
Skill Level Intermediate
1. Problem 1: Exploring Lake Pend Oreille
2. Problem 2: Image Analysis
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Recursion and Directories
6. Problem 6: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.