| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| private static final String[] | |
| protected FileResource | |
| private Encoding | |
| pack-priv static final ByteList | |
| private boolean | |
| private long | |
| private static final String[] | |
| private RubyString | |
| private int | |
| private String[] | |
| private static final ByteList |
| Modifier and Type | Method and Description |
|---|---|
| public static IRubyObject | |
| private static RubyArray | |
| public static IRubyObject | chdir(ThreadContext context, IRubyObject recv, IRubyObject path, Block block)
Changes the current directory to |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| private static IRubyObject | |
| private void | |
| private void | |
| private static void | |
| public RubyArray | children(ThreadContext context)
Returns an array containing all of the filenames except for "." and ".." in the given directory. |
| public static RubyArray | |
| public static RubyArray | |
| public static IRubyObject | |
| public static IRubyObject | chroot(ThreadContext context, IRubyObject recv, IRubyObject path)
Changes the root directory (only allowed by super user). |
| public IRubyObject | |
| public final void | close()
Implements java.
Deprecated
since 10.0.
Closes this stream and releases any system resources associated with it. |
| public static RubyClass | |
| private static String | |
| private static ArrayList | |
| public IRubyObject | each(ThreadContext context, Encoding enc, Block block)
Executes the block once for each entry in the directory. |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | each_child(ThreadContext context, IRubyObject recv, IRubyObject arg, Block block)
Executes the block once for each entry in the directory except for "." and "..", passing the filename of each entry as parameter to the block. |
| public static IRubyObject | each_child(ThreadContext context, IRubyObject recv, IRubyObject arg, IRubyObject encOpts, Block block)
Executes the block once for each entry in the directory except for "." and "..", passing the filename of each entry as parameter to the block. |
| public IRubyObject | each_child(ThreadContext context, Encoding enc, Block block)
Executes the block once for each child in the directory (i.e. all the directory entries except for "." and ".."). |
| public IRubyObject | each_child(ThreadContext context, Block block)
Executes the block once for each child in the directory (i.e. all the directory entries except for "." and ".."). |
| private static IRubyObject | eachChildCommon(ThreadContext context, IRubyObject recv, RubyString path, IRubyObject encOpts, Block block)
|
| public static IRubyObject | |
| public RubyArray | |
| public RubyArray | |
| public static RubyArray | entries(ThreadContext context, IRubyObject recv, IRubyObject arg)
Returns an array containing all of the filenames in the given directory. |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| private static RubyArray | entriesCommon(ThreadContext context, IRubyObject path, Encoding encoding, final boolean childrenOnly)
|
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | foreach(ThreadContext context, IRubyObject recv, IRubyObject path, Block block)
Executes the block once for each file in the directory specified by
|
| public static IRubyObject | foreach(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject encOpts, Block block)
|
| private static IRubyObject | foreachCommon(ThreadContext context, IRubyObject recv, RubyString path, IRubyObject encOpts, Block block)
|
| protected static List | |
| protected static List | |
| private static String | |
| protected static FileResource | |
| protected static JRubyFile | getDirForRmdir(final Ruby runtime, final String path)
Similar to getDir, but performs different checks to match rmdir behavior. |
| private static Encoding | |
| private static String[] | |
| private static FileResource | |
| public static IRubyObject | getHomeDirectoryPath(ThreadContext context, String user)
Returns the home directory of the specified |
| public static RubyString | |
| pack-priv static RubyString | |
| public static Optional | |
| public String | |
| public static RubyString | |
| public static RubyString | |
| public static IRubyObject | glob(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
Returns an array of filenames matching the specified wildcard pattern
|
| private static ByteList | |
| private static void | |
| public static IRubyObject | home(ThreadContext context, IRubyObject recv)
Returns the home directory of the current user or the named user if given. |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | Returns: a new Dir objectcurrent context context, IRubyObject target path path)Creates a new |
| public IRubyObject | Returns: a new Dir objectcurrent context context, IRubyObject target path path, IRubyObject encoding options encOpts)Like |
| private RubyDir | |
| public IRubyObject | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| private static String[] | |
| public static IRubyObject | mkdir(ThreadContext context, IRubyObject recv, IRubyObject... args)
Creates the directory specified by |
| public static IRubyObject | |
| private static IRubyObject | |
| private static RubyArray | |
| private static RubyString | |
| public static IRubyObject | open(ThreadContext context, IRubyObject recv, IRubyObject path, Block block)
Returns a new directory object for |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | rmdir(ThreadContext context, IRubyObject recv, IRubyObject path)
Deletes the directory specified by |
| public static IRubyObject | |
| private static RubyFixnum | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyInteger | |
| public RubyInteger | |
| public IRubyObject | |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Overrides org. Implements org. Convert the object to the specified Java class, if possible. |