Esempio n. 1
0
        public static IEnumerable <MutableString> /*!*/ GetMatches(RubyContext /*!*/ context, MutableString /*!*/ pattern, int flags)
        {
            string strPattern = context.DecodePath(pattern);

            foreach (string strFileName in GetMatches(context.Platform, strPattern, flags))
            {
                yield return(context.EncodePath(strFileName).TaintBy(pattern));
            }
        }
Esempio n. 2
0
 internal static FileSystemInfo/*!*/ Create(RubyContext/*!*/ context, MutableString/*!*/ path) {
     return Create(context, context.DecodePath(path));
 }
Esempio n. 3
0
 internal static bool Exists(RubyContext/*!*/ context, MutableString/*!*/ path) {
     var strPath = context.DecodePath(path);
     return context.Platform.DirectoryExists(strPath) || context.Platform.FileExists(strPath);
 }
Esempio n. 4
0
 internal static bool DirectoryExists(RubyContext/*!*/ context, MutableString/*!*/ path) {
     return context.Platform.DirectoryExists(context.DecodePath(path));
 }
Esempio n. 5
0
 internal static FileSystemInfo /*!*/ Create(RubyContext /*!*/ context, MutableString /*!*/ path)
 {
     return(Create(context, context.DecodePath(path)));
 }
Esempio n. 6
0
        internal static bool Exists(RubyContext /*!*/ context, MutableString /*!*/ path)
        {
            var strPath = context.DecodePath(path);

            return(context.Platform.DirectoryExists(strPath) || context.Platform.FileExists(strPath));
        }
Esempio n. 7
0
 internal static bool DirectoryExists(RubyContext /*!*/ context, MutableString /*!*/ path)
 {
     return(context.Platform.DirectoryExists(context.DecodePath(path)));
 }
Esempio n. 8
0
 public static IEnumerable<MutableString>/*!*/ GetMatches(RubyContext/*!*/ context, MutableString/*!*/ pattern, int flags) {
     string strPattern = context.DecodePath(pattern);
     foreach (string strFileName in GetMatches(context.Platform, strPattern, flags)) {
         yield return context.EncodePath(strFileName).TaintBy(pattern);
     }
 }
Esempio n. 9
0
 public RubyFile(RubyContext/*!*/ context, MutableString/*!*/ path, IOMode mode)
     : this(context, context.DecodePath(path), mode) {
 }
Esempio n. 10
0
 public RubyFile(RubyContext /*!*/ context, MutableString /*!*/ path, IOMode mode)
     : this(context, context.DecodePath(path), mode)
 {
 }