Code example for File

Methods: getAbsolutePathgetNamelength

0
 
        /** The path to the file. */ 
        public final String path;
 
        public Entry(File file) {
            id = Long.parseLong(file.getName());
            size = file.length();
            path = file.getAbsolutePath();
        } 
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java