public static bool IsZeroLength(RubyClass /*!*/ self, [DefaultProtocol, NotNull] MutableString /*!*/ path) { string strPath = path.ConvertToString(); // NUL/nul is a special-cased filename on Windows if (strPath.ToLower() == "nul") { return(RubyStatOps.IsZeroLength(RubyStatOps.Create(self.Context, strPath))); } if (DirectoryExists(self.Context, strPath) || !FileExists(self.Context, strPath)) { return(false); } return(RubyStatOps.IsZeroLength(RubyStatOps.Create(self.Context, strPath))); }