3 ms·
I was parsing paths into an array of dirs recently. The `/` root dir is quirky. You can’t just do `dirPath.split(‘/‘)`. You have to handle it as a special case
by vaughan 3y ago
I was parsing paths into an array of dirs recently.
The `/` root dir is quirky. You can’t just do `dirPath.split(‘/‘)`. You have to handle it as a special case. Would be easier if it had a special name. Like `$/dir1/dir2`.
Or am I missing something.