/** * Looks up the file status for a path. If the path * doesn't exist, then the status will be null * @param fs the FileSystem for the path * @param pathString a string for a path * @throws IOException if anything goes wrong */ private PathData(FileSystem fs, String pathString) throws IOException { this(fs, pathString, lookupStat(fs, pathString, true)); }
/** * Updates the paths's file status * @return the updated FileStatus * @throws IOException if anything goes wrong... */ public FileStatus refreshStatus() throws IOException { FileStatus status = null; try { status = lookupStat(fs, toString(), false); } finally { // always set the status. the caller must get the correct result // if it catches the exception and later interrogates the status setStat(status); } return status; }
/** * Looks up the file status for a path. If the path * doesn't exist, then the status will be null * @param fs the FileSystem for the path * @param pathString a string for a path * @throws IOException if anything goes wrong */ private PathData(FileSystem fs, String pathString) throws IOException { this(fs, pathString, lookupStat(fs, pathString, true)); }
/** * Looks up the file status for a path. If the path * doesn't exist, then the status will be null * @param fs the FileSystem for the path * @param pathString a string for a path * @throws IOException if anything goes wrong */ private PathData(FileSystem fs, String pathString) throws IOException { this(fs, pathString, lookupStat(fs, pathString, true)); }
/** * Looks up the file status for a path. If the path * doesn't exist, then the status will be null * @param fs the FileSystem for the path * @param pathString a string for a path * @throws IOException if anything goes wrong */ private PathData(FileSystem fs, String pathString) throws IOException { this(fs, pathString, lookupStat(fs, pathString, true)); }
/** * Looks up the file status for a path. If the path * doesn't exist, then the status will be null * @param fs the FileSystem for the path * @param pathString a string for a path * @throws IOException if anything goes wrong */ private PathData(FileSystem fs, String pathString) throws IOException { this(fs, pathString, lookupStat(fs, pathString, true)); }
/** * Updates the paths's file status * @return the updated FileStatus * @throws IOException if anything goes wrong... */ public FileStatus refreshStatus() throws IOException { FileStatus status = null; try { status = lookupStat(fs, toString(), false); } finally { // always set the status. the caller must get the correct result // if it catches the exception and later interrogates the status setStat(status); } return status; }
/** * Updates the paths's file status * @return the updated FileStatus * @throws IOException if anything goes wrong... */ public FileStatus refreshStatus() throws IOException { FileStatus status = null; try { status = lookupStat(fs, toString(), false); } finally { // always set the status. the caller must get the correct result // if it catches the exception and later interrogates the status setStat(status); } return status; }
/** * Updates the paths's file status * @return the updated FileStatus * @throws IOException if anything goes wrong... */ public FileStatus refreshStatus() throws IOException { FileStatus status = null; try { status = lookupStat(fs, toString(), false); } finally { // always set the status. the caller must get the correct result // if it catches the exception and later interrogates the status setStat(status); } return status; }
/** * Updates the paths's file status * @return the updated FileStatus * @throws IOException if anything goes wrong... */ public FileStatus refreshStatus() throws IOException { FileStatus status = null; try { status = lookupStat(fs, toString(), false); } finally { // always set the status. the caller must get the correct result // if it catches the exception and later interrogates the status setStat(status); } return status; }