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