Module: RIO::Ops::Path::ExistOrNot
- Included in:
- NonExisting, Str
- Defined in:
- lib/rio/ops/path.rb
Instance Method Summary collapse
Instance Method Details
#symlink(d) ⇒ Object
272 273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/rio/ops/path.rb', line 272 def symlink(d) rtn_self { dst = self.ensure_rio(d) dst /= self.filename if dst.directory? if self.abs? fs.symlink(self,dst) else fs.symlink(dst.route_to(self).to_s,dst.to_s) end dst.reset } end |