| Summary: | Copy and Pasting multiple directories results in concatenated top folder names | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Ken Walker <ken_walker> |
| Component: | Node | Assignee: | Ken Walker <ken_walker> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mamacdon |
| Version: | 2.0 | ||
| Target Milestone: | 4.0 M2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Ken Walker
New to node file system so here's a first attempt: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=7f05b27753f66b4927636c32842b5eccd174d116 In bug404964 branch Committed the change here: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=8f8b6fcdc0f35519b8dc5630022261bc36ea116c Sorry, finally got around to looking at this patch.
> destPath[destPath.length] === path.sep
This condition will always be false, as s[s.length] is undefined for any string. You need s[s.length - 1] to get the last character. So the path separator will always be appended.
This may not cause any further bugs (i.e. we were probably never calling this method with destPath that ended in "/") but we should fix the code anyway
d'oh, fixing this was fixed |