tpkg / client

tpkg client code
MIT License
5 stars 7 forks source link

Fix removal of symlinks to directories #39

Closed jaeheung90 closed 11 years ago

jaeheung90 commented 11 years ago

When a file is a symlink to a directory, File.directory?(file) returns true, and the script used to try to delete it with Dir.delete( ) which would fail and be rescued silently as if it were a non-empty directory. A symlink needs to be tested with File.symlink?( ) and deleted with File.delete( ). This resolves issue#37

jheiss commented 11 years ago

Thanks!