Lines Matching defs:target

946      * Creates a symbolic link to a target <i>(optional operation)</i>.
948 * <p> The {@code target} parameter is the target of the link. It may be an
950 * the target is a relative path then file system operations on the resulting
967 * @param target
968 * the target of the symbolic link
990 public static Path createSymbolicLink(Path link, Path target,
994 provider(link).createSymbolicLink(link, target, attrs);
1047 * symbolic link itself, not the final target of the link, is deleted.
1087 * symbolic link itself, not the final target of the link, is deleted.
1122 * Copy a file to a target file.
1124 * <p> This method copies a file to the target file with the {@code
1126 * copy fails if the target file already exists or is a symbolic link,
1127 * except if the source and target are the {@link #isSameFile same} file, in
1129 * are not required to be copied to the target file. If symbolic links are
1130 * supported, and the file is a symbolic link, then the final target of the
1132 * directory in the target location (entries in the directory are not
1143 * <td> If the target file exists, then the target file is replaced if it
1144 * is not a non-empty directory. If the target file exists and is a
1145 * symbolic link, then the symbolic link itself, not the target of
1151 * the target file. The exact file attributes that are copied is platform
1154 * copied to the target file if supported by both the source and target
1161 * then the symbolic link itself, not the target of the link, is copied.
1172 * is thrown then it possible that the target file is incomplete or some of
1174 * {@code REPLACE_EXISTING} option is specified and the target file exists,
1175 * then the target file is replaced. The check for the existence of the file
1190 * @param target
1191 * the path to the target file (may be associated with a different
1196 * @return the path to the target file
1201 * if the target file exists but cannot be replaced because the
1215 * to check write access to the target file. If a symbolic link is
1219 public static Path copy(Path source, Path target, CopyOption... options)
1223 if (provider(target) == provider) {
1225 provider.copy(source, target, options);
1228 CopyMoveHelper.copyToForeignTarget(source, target, options);
1230 return target;
1234 * Move or rename a file to a target file.
1236 * <p> By default, this method attempts to move the file to the target
1237 * file, failing if the target file exists except if the source and
1238 * target are the {@link #isSameFile same} file, in which case this method
1240 * itself, not the target of the link, is moved. This method may be
1261 * <td> If the target file exists, then the target file is replaced if it
1262 * is not a non-empty directory. If the target file exists and is a
1263 * symbolic link, then the symbolic link itself, not the target of
1269 * other options are ignored. If the target file exists then it is
1274 * example, when the target location is on a different {@code FileStore}
1275 * and would require that the file be copied, or target location is
1288 * original file and the target file may both exist, the target file may be
1310 * @param target
1311 * the path to the target file (may be associated with a different
1316 * @return the path to the target file
1321 * if the target file exists but cannot be replaced because the
1337 * target file.
1339 public static Path move(Path source, Path target, CopyOption... options)
1343 if (provider(target) == provider) {
1345 provider.move(source, target, options);
1348 CopyMoveHelper.moveToForeignTarget(source, target, options);
1350 return target;
1356 * Reads the target of a symbolic link <i>(optional operation)</i>.
1359 * links</a> then this method is used to read the target of the link, failing
1360 * if the file is not a symbolic link. The target of the link need not exist.
1367 * @return a {@code Path} object representing the target of the link
1372 * if the target could otherwise not be read because the file
1639 * symbolic links are followed and the file attribute of the final target
1707 * symbolic links are followed and the file attribute of the final target
1775 * symbolic links are followed and the file attribute of the final target
1879 * symbolic links are followed and the file attribute of the final target
1925 * symbolic links are followed and the file attribute of the final target
2107 * symbolic links are followed and the file attribute of the final target
2144 * symbolic links are followed and the file attribute of the final target
2181 * symbolic links are followed and the file attribute of the final target
2537 * followed. When following links, and the attributes of the target cannot
2744 * <p> By default, the copy fails if the target file already exists or is a
2746 * REPLACE_EXISTING} option is specified, and the target file already exists,
2747 * then it is replaced if it is not a non-empty directory. If the target
2754 * the file, then it may do so after the target file has been created and
2778 * @param target
2788 * if the target file exists but cannot be replaced because the
2805 public static long copy(InputStream in, Path target, CopyOption... options)
2829 deleteIfExists(target);
2835 // attempt to create target file. If it fails with
2841 ostream = newOutputStream(target, StandardOpenOption.CREATE_NEW,