fs icon indicating copy to clipboard operation
fs copied to clipboard

normalized-path should return String, not File

Open gardnermj opened this issue 13 years ago • 4 comments

normalized-path claims to return a path, but instead returns a File object.

gardnermj avatar Nov 04 '12 04:11 gardnermj

The rest of those functions that return File objects say the same thing. Is it the word 'path' tripping you up? If so, the documentation is all that needs to be changed.

Raynes avatar Nov 04 '12 04:11 Raynes

But absolute-path returns a String, doesn't it? That's why I assumed it was the implementation and not the docstring for normalized-path that needed fixing. Either way works for me, as long as things are consistent.

gardnermj avatar Nov 04 '12 05:11 gardnermj

Ah, yes, I see now. I think it should be returning a File. Good catch.

Raynes avatar Nov 04 '12 05:11 Raynes

I think this has been fixed a long time ago (in 8fadbde3461ad1870468a0ee0991662d55f5f640)

egli avatar Sep 11 '14 09:09 egli