/** * Test if the parent directory exists * @return boolean indicating parent exists * @throws IOException upon unexpected error */ public boolean parentExists() throws IOException { return representsDirectory() ? fs.exists(path) : fs.exists(path.getParent()); }
protected PathData getTargetPath(PathData src) throws IOException { PathData target; // on the first loop, the dst may be directory or a file, so only create // a child path if dst is a dir; after recursion, it's always a dir if ((getDepth() > 0) || (dst.exists && dst.stat.isDirectory())) { target = dst.getPathDataForChild(src); } else if (dst.representsDirectory()) { // see if path looks like a dir target = dst.getPathDataForChild(src); } else { target = dst; } return target; }
/** * Test if the parent directory exists * @return boolean indicating parent exists * @throws IOException upon unexpected error */ public boolean parentExists() throws IOException { return representsDirectory() ? fs.exists(path) : fs.exists(path.getParent()); }
/** * Test if the parent directory exists * @return boolean indicating parent exists * @throws IOException upon unexpected error */ public boolean parentExists() throws IOException { return representsDirectory() ? fs.exists(path) : fs.exists(path.getParent()); }
/** * Test if the parent directory exists * @return boolean indicating parent exists * @throws IOException upon unexpected error */ public boolean parentExists() throws IOException { return representsDirectory() ? fs.exists(path) : fs.exists(path.getParent()); }
/** * Test if the parent directory exists * @return boolean indicating parent exists * @throws IOException upon unexpected error */ public boolean parentExists() throws IOException { return representsDirectory() ? fs.exists(path) : fs.exists(path.getParent()); }
protected PathData getTargetPath(PathData src) throws IOException { PathData target; // on the first loop, the dst may be directory or a file, so only create // a child path if dst is a dir; after recursion, it's always a dir if ((getDepth() > 0) || (dst.exists && dst.stat.isDirectory())) { target = dst.getPathDataForChild(src); } else if (dst.representsDirectory()) { // see if path looks like a dir target = dst.getPathDataForChild(src); } else { target = dst; } return target; }
protected PathData getTargetPath(PathData src) throws IOException { PathData target; // on the first loop, the dst may be directory or a file, so only create // a child path if dst is a dir; after recursion, it's always a dir if ((getDepth() > 0) || (dst.exists && dst.stat.isDirectory())) { target = dst.getPathDataForChild(src); } else if (dst.representsDirectory()) { // see if path looks like a dir target = dst.getPathDataForChild(src); } else { target = dst; } return target; }
protected PathData getTargetPath(PathData src) throws IOException { PathData target; // on the first loop, the dst may be directory or a file, so only create // a child path if dst is a dir; after recursion, it's always a dir if ((getDepth() > 0) || (dst.exists && dst.stat.isDirectory())) { target = dst.getPathDataForChild(src); } else if (dst.representsDirectory()) { // see if path looks like a dir target = dst.getPathDataForChild(src); } else { target = dst; } return target; }
protected PathData getTargetPath(PathData src) throws IOException { PathData target; // on the first loop, the dst may be directory or a file, so only create // a child path if dst is a dir; after recursion, it's always a dir if ((getDepth() > 0) || (dst.exists && dst.stat.isDirectory())) { target = dst.getPathDataForChild(src); } else if (dst.representsDirectory()) { // see if path looks like a dir target = dst.getPathDataForChild(src); } else { target = dst; } return target; }