[Baypiggies] Unlinking symlinks

Keith Dart keith at dartworks.biz
Fri Apr 30 22:52:14 CEST 2010

=== On Fri, 04/30, Glen Jarvis wrote: ===
> Is os.unlink() guaranteed to touch the symlink only?   Also,
> semantically, is this "unlinking" a hard unlinking and therefore the
> same as remove (i.e., which would be easier for someone who is
> reading the code to understand/yet still be accurate).


That is just wrapper for the unlink stdlib function.

man 2 unlink says:

 If the name referred to a symbolic link the link is removed.

You can also do a little test to verify it. 

-- Keith Dart

-- --------------------
Keith Dart
<keith at dartworks.biz>

More information about the Baypiggies mailing list