Commit 5f742b70 authored by Jason Simmons's avatar Jason Simmons

Merge pull request #145 from jason-simmons/init_dir_path

Generalize path handling in flutter init
parents 184ab7c9 ef2e038b
......@@ -67,7 +67,8 @@ abstract class Template {
Template(this.name, this.description);
void generateInto(Directory dir) {
String projectName = _normalizeProjectName(p.basename(dir.path));
String dirPath = p.normalize(dir.absolute.path);
String projectName = _normalizeProjectName(p.basename(dirPath));
print('Creating ${p.basename(projectName)}...');
dir.createSync(recursive: true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment