コード例 #1
0
ファイル: FileTest.cs プロジェクト: ife/IronLanguages
 public static bool IsFile(ConversionStorage <MutableString> /*!*/ toPath, RubyModule /*!*/ self, object path)
 {
     return(RubyFileOps.FileExists(self.Context, Protocols.CastToPath(toPath, path)));
 }
コード例 #2
0
 public static bool IsFile(RubyModule /*!*/ self, [DefaultProtocol, NotNull] MutableString /*!*/ path)
 {
     return(RubyFileOps.FileExists(self.Context, path));
 }
コード例 #3
0
ファイル: FileTest.cs プロジェクト: ife/IronLanguages
        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));
        }