Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.3.0, 3.4.0
-
None
-
None
Description
If cordova create is passed a -src or -link option whose argument is the current directory (or any parent of it, I suspect), then it will try to copy or link the current directory to newapp/www
In the link case, this just creates a symlink cycle; in the copy case, it actually tries to recursively copy the directory inside itself. On OSX it eventually terminates with ENAMETOOLONG.
In both cases, the project is broken and could never be used to build anything.
We should detect this case and abort with an error condition.