private static bool IsWritableImpl(RubyContext /*!*/ context, string /*!*/ path) { FileSystemInfo fsi; if (RubyStatOps.TryCreate(context, path, out fsi)) { return(RubyStatOps.IsWritable(fsi)); } else { return(false); } }
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))); }
public static DateTime ModifiedTime(RubyContext /*!*/ context, RubyFile /*!*/ self) { return(RubyStatOps.ModifiedTime(RubyStatOps.Create(context, self.Path))); }
public static FileSystemInfo Stat(RubyContext /*!*/ context, RubyFile /*!*/ self) { return(RubyStatOps.Create(context, self.Path)); }
public static DateTime AccessTime(RubyClass /*!*/ self, object path) { return(RubyStatOps.AccessTime(RubyStatOps.Create(self.Context, path))); }
public static object NullableSize(RubyClass /*!*/ self, object path) { return(RubyStatOps.NullableSize(RubyStatOps.Create(self.Context, path))); }
public static bool IsSymLink(RubyClass /*!*/ self, object path) { return(RubyStatOps.IsSymLink(RubyStatOps.Create(self.Context, path))); }
public static FileSystemInfo Stat(RubyClass /*!*/ self, object path) { return(RubyStatOps.Create(self.Context, path)); }
public static int Size(RubyClass /*!*/ self, object path) { return(RubyStatOps.Size(RubyStatOps.Create(self.Context, path))); }
public static bool IsBlockDevice(RubyClass /*!*/ self, object /*!*/ path) { return(RubyStatOps.IsBlockDevice(RubyStatOps.Create(self.Context, path))); }
public static MutableString FileType(RubyClass /*!*/ self, object path) { return(RubyStatOps.FileType(RubyStatOps.Create(self.Context, path))); }
public static RubyTime AccessTime(RubyContext /*!*/ context, RubyFile /*!*/ self) { return(RubyStatOps.AccessTime(RubyStatOps.Create(context, self.Path))); }
public static RubyTime ModifiedTime(RubyClass /*!*/ self, [DefaultProtocol, NotNull] MutableString /*!*/ path) { return(RubyStatOps.ModifiedTime(RubyStatOps.Create(self.Context, path))); }
public static FileSystemInfo /*!*/ Stat(RubyClass /*!*/ self, [DefaultProtocol, NotNull] MutableString /*!*/ path) { return(RubyStatOps.Create(self.Context, path)); }
public static MutableString FileType(RubyClass /*!*/ self, [DefaultProtocol, NotNull] MutableString /*!*/ path) { return(RubyStatOps.FileType(RubyStatOps.Create(self.Context, path))); }
public static RubyTime AccessTime(RubyClass /*!*/ self, [DefaultProtocol] MutableString /*!*/ path) { return(RubyStatOps.AccessTime(RubyStatOps.Create(self.Context, path))); }