Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.util;
 
 import jnr.posix.POSIX;

This is a shared interface for files loaded as java.io.File and java.util.zip.ZipEntry.
 
 public interface FileResource {
    boolean exists();
    boolean isDirectory();
    boolean isFile();
    long lastModified();
    long length();
    boolean canRead();
    boolean canWrite();

    

See also:
java.io.File.list
    String[] list();
    boolean isSymLink();
    FileStat stat(POSIX posix);
    FileStat lstat(POSIX posix);
    // For transition to file resources only. Implementations should return
    // JRubyFile if this resource is backed by one, and NOT_FOUND JRubyFile
    // otherwise.
New to GrepCode? Check out our FAQ X