lib/rio/ops/either.rb in rio-0.3.3 vs lib/rio/ops/either.rb in rio-0.3.4

- old
+ new

@@ -95,13 +95,27 @@ def dirname=(arg) rename!(_path_with_dirname(arg)) end def ss_type? - return 'entries' if cx['ss_type'].nil? - return cx['ss_type'] if %w[files dirs entries nofiles nodirs noentries].include?(cx['ss_type']) - nil + case cx['ss_type'] + when nil + 'entries' + when 'files', 'dirs', 'entries', 'skipfiles', 'skipdirs', 'skipentries' + cx['ss_type'] + else + nil + end end + + require 'Pathname' + def realpath + new_rio(Impl::U.realpath(fspath)) + end + def mountpoint? + Impl::U.mountpoint?(fspath) + end + end module ExistOrNot end module Existing