lib/net/ftp/list/unix.rb in net-ftp-list-3.2.10 vs lib/net/ftp/list/unix.rb in net-ftp-list-3.2.11
- old
+ new
@@ -70,10 +70,10 @@
basename += match[22] unless match[22].nil?
# strip the symlink stuff we don't care about
if symlink
basename.sub!(/\s+\->(.+)$/, '')
- symlink_destination = $1.strip
+ symlink_destination = $1.strip if $1
end
emit_entry(
raw,
:dir => dir,