Lines Matching refs:exists

121      * An exception is thrown if the file object exists but is a directory.
122 * An exception is thrown if the file exists but cannot be read.
132 if (file.exists()) {
134 throw new IOException("File '" + file + "' exists but is a directory");
155 * An exception is thrown if the file object exists but is a directory.
156 * An exception is thrown if the file exists but cannot be written to.
167 if (file.exists()) {
169 throw new IOException("File '" + file + "' exists but is a directory");
176 if (parent != null && parent.exists() == false) {
211 * a new file with size 0 or, if the file exists already, it is opened and
222 if (!file.exists()) {
419 boolean file1Exists = file1.exists();
420 if (file1Exists != file2.exists()) {
550 * If the destination file exists, then this method will overwrite it.
570 * If the destination file exists, then this method will overwrite it.
587 if (destDir.exists() && destDir.isDirectory() == false) {
598 * created if it does not exist. If the destination file exists, then this
619 * If the destination file exists, then this method will overwrite it.
639 if (srcFile.exists() == false) {
643 throw new IOException("Source '" + srcFile + "' exists but is a directory");
648 if (destFile.getParentFile() != null && destFile.getParentFile().exists() == false) {
653 if (destFile.exists() && destFile.canWrite() == false) {
654 throw new IOException("Destination '" + destFile + "' exists but is read-only");
668 if (destFile.exists() && destFile.isDirectory()) {
669 throw new IOException("Destination '" + destFile + "' exists but is a directory");
716 if (srcDir.exists() && srcDir.isDirectory() == false) {
722 if (destDir.exists() && destDir.isDirectory() == false) {
869 if (srcDir.exists() == false) {
873 throw new IOException("Source '" + srcDir + "' exists but is not a directory");
907 if (destDir.exists()) {
909 throw new IOException("Destination '" + destDir + "' exists but is not a directory");
944 * will be overwritten if it already exists.
977 if (!directory.exists()) {
1029 if (!directory.exists()) {
1063 * This method repeatedly tests {@link File#exists()} until it returns
1068 * @return true if file exists
1074 while (!file.exists()) {
1387 boolean filePresent = file.exists();
1423 if (!directory.exists()) {
1439 if (!directory.exists()) {
1471 * directories. If there already exists a file with specified name or
1479 if (directory.exists()) {
1484 + " exists and is "
1506 if (!directory.exists()) {
1544 * @return true if the <code>File</code> exists and has been modified more
1553 if (!reference.exists()) {
1567 * @return true if the <code>File</code> exists and has been modified
1587 * @return true if the <code>File</code> exists and has been modified after
1595 if (!file.exists()) {
1611 * @return true if the <code>File</code> exists and has been modified before
1620 if (!reference.exists()) {
1634 * @return true if the <code>File</code> exists and has been modified
1654 * @return true if the <code>File</code> exists and has been modified before
1662 if (!file.exists()) {
1736 if (!srcDir.exists()) {
1742 if (destDir.exists()) {
1743 throw new IOException("Destination '" + destDir + "' already exists");
1749 if (srcDir.exists()) {
1775 if (!destDir.exists() && createDestDir) {
1778 if (!destDir.exists()) {
1808 if (!srcFile.exists()) {
1814 if (destFile.exists()) {
1815 throw new IOException("Destination '" + destFile + "' already exists");
1850 if (!destDir.exists() && createDestDir) {
1853 if (!destDir.exists()) {
1884 if (!src.exists()) {