Example #1
0
 public static bool IsFile(ConversionStorage <MutableString> /*!*/ toPath, RubyModule /*!*/ self, object path)
 {
     return(RubyFileOps.FileExists(self.Context, Protocols.CastToPath(toPath, path)));
 }
Example #2
0
 public static bool IsFile(RubyModule /*!*/ self, [DefaultProtocol, NotNull] MutableString /*!*/ path)
 {
     return(RubyFileOps.FileExists(self.Context, path));
 }
Example #3
0
        public static bool Exists(ConversionStorage <MutableString> /*!*/ toPath, RubyModule /*!*/ self, object path)
        {
            var p = Protocols.CastToPath(toPath, path);

            return(RubyFileOps.FileExists(self.Context, p) || RubyFileOps.DirectoryExists(self.Context, p));
        }