android / android-studio-poet

Large Android projects generator
Apache License 2.0
702 stars 85 forks source link

Do not delete files in symlinks when overwriting project #104

Closed jin closed 6 years ago

jin commented 6 years ago

The current behavior of generating a new project deletes all the files in the original directory before writing new contents. If there are symlinks to other directories, AbstractWriter#delete follows the symlink and deletes the files in them too.

This caused problems when I create symlinks to large directories like the SDK, which were completely wiped out when I generate a new project.

NikitaKozlov commented 6 years ago

LGTM