Closed GoogleCodeExporter closed 8 years ago
I first thought "Let's see if we can remove repeated code" (see attachment)
but then I realized "hey, we could be missing some symlinks, let's just
scan the user directory, looking for all symlinks, and turning them into
directories".
That would be shorter and would handle all languages.
Wanna try it, or should I?
(BTW I prefer patches as attachments, I think, though this one was fine.)
Original comment by daniel.r...@gmail.com
on 27 Aug 2013 at 12:22
Attachments:
Good idea! I was too focused on the translation side of the problem :/
I did some research and i suggest something like:
find -type l -size 1c -exec rm '{}' \; -exec mkdir '{}' \;
But as i'm not that bash expert, am totally unsure about the size parameter and
don't know if two execs will always act like this, i'd prefer if you could do
the rest of the job. i used the size parameter to identify symlinks to
directories, most likely filesystem dependent...
Original comment by Dawncrow...@googlemail.com
on 27 Aug 2013 at 5:08
This patch only checks for symlinks in the user directory, but should be
generic enough.
Comments?
Original comment by austinenglish@gmail.com
on 5 Sep 2013 at 12:04
Attachments:
Didn't test that, but it looks quite good!
Original comment by Dawncrow...@googlemail.com
on 5 Sep 2013 at 4:44
This issue was closed by revision r1056.
Original comment by austinenglish@gmail.com
on 5 Sep 2013 at 7:31
Original issue reported on code.google.com by
Dawncrow...@googlemail.com
on 26 Aug 2013 at 6:06