Closed Bug 912385 Opened 7 years ago Closed 7 years ago
Include the trailing slash in File
As agreed with Jonas on IRC (as noted in bug 907428 comment 10) we should include a trailing slash on File.path in order to make it easier to use. In other words, instead of having to do: var fullpath = (file.path ? file.path + "/" : "") + file.name; users can just do: var fullpath = file.path + file.name; and that will do the right thing regardless of whether file.path is the empty string or not.
I'll check this in and let you do a retrospective r+ once you're back.
Attachment #799365 - Flags: review?(jonas)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Attachment #799365 - Flags: review?(jonas) → review+
You need to log in before you can comment on or make changes to this bug.