Beispiel #1
0
 public static bool IsFile(ConversionStorage <MutableString> /*!*/ toPath, RubyModule /*!*/ self, object path)
 {
     return(RubyFileOps.FileExists(self.Context, Protocols.CastToPath(toPath, path)));
 }
Beispiel #2
0
 public static bool IsFile(RubyModule /*!*/ self, [DefaultProtocol, NotNull] MutableString /*!*/ path)
 {
     return(RubyFileOps.FileExists(self.Context, path));
 }
Beispiel #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));
        }