-
-
Save isaacs/6189920 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
console.error(fs.readdirSync('/Users/isaacs/Music/Björk/Medúlla/')); | |
console.error(fs.statSync('/Users/isaacs/Music/Björk/Medúlla/05 Öll Birtan.mp3')); | |
process.chdir('/Users/isaacs/Music/Björk/Medúlla/'); | |
console.error(process.cwd()); | |
console.error(process.cwd() === '/Users/isaacs/Music/Björk/Medúlla'); |
Author
isaacs
commented
Aug 8, 2013
Here's what ls does:
$ ls /Users/isaacs/Music/Björk/Medúlla
01 Pleasure Is All Mine (Feat. Icelandic Choir, Mike Patton, Tagaq).mp3
02 Show Me Forgiveness.mp3
03 Where Is the Line (Feat. Gregory Purnhagen, Icelandic Choir, Mike Patton).mp3
04 Vökuró (Feat. Icelandic Choir).mp3
05 Öll Birtan.mp3
06 Who Is It (Carry My Joy on the Left, Carry My Pain on the Right) (Feat. Tagaq).mp3
07 Submarine (Feat. Robert Wyatt).mp3
08 Desired Constellation (Feat. Icelandic Choir).mp3
09 Oceania (Feat. London Choir).mp3
10 Sonnets_Unrealities XI (Feat. Icelandic Choir).mp3
11 Ancestors (Feat. Tagaq).mp3
12 Mouth's Cradle (Feat. Icelandic Choir, Tagaq).mp3
13 Midvikudags.mp3
14 Triumph of a Heart.mp3
Using the latin1 chars:
$ ls /Users/isaacs/Music/Bjo�rk/Medu�lla
ls: /Users/isaacs/Music/Bjo�rk/Medu�lla: No such file or directory
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment