We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
join
1 parent daab547 commit 1fd4ed6Copy full SHA for 1fd4ed6
packages/angular_devkit/schematics/src/rules/move.ts
@@ -5,7 +5,7 @@
5
* Use of this source code is governed by an MIT-style license that can be
6
* found in the LICENSE file at https://angular.io/license
7
*/
8
-import { normalize } from '@angular-devkit/core';
+import { join, normalize } from '@angular-devkit/core';
9
import { Rule } from '../engine/interface';
10
import { noop } from './base';
11
@@ -30,7 +30,7 @@ export function move(from: string, to?: string): Rule {
30
} else {
31
// fromPath is a directory
32
tree.getDir(fromPath).visit(path => {
33
- tree.rename(path, toPath + '/' + path.substr(fromPath.length));
+ tree.rename(path, join(toPath, path.substr(fromPath.length)));
34
});
35
}
36
0 commit comments