Module: RIO::Ops::Path::ExistOrNot

Included in:
NonExisting, Str
Defined in:
lib/rio/ops/path.rb

Instance Method Summary collapse

Instance Method Details



257
258
259
260
261
262
263
264
265
266
267
268
269
# File 'lib/rio/ops/path.rb', line 257

def symlink(d) 
  rtn_self { 
    dst = self.ensure_rio(d)
    dst /= self.filename if dst.directory?
    if self.abs?
      fs.symlink(self,dst) 
    else
      #p "symlink(#{dst.route_to(self)},#{dst})"
      fs.symlink(dst.route_to(self),dst.to_s) 
    end
    dst.reset
  } 
end