Lines Matching refs:source

45      * Copy file from source to target
47 static void copy(final WindowsPath source,
79 // check permissions. If the source file is a symbolic link then
83 source.checkRead();
87 // get attributes of source file
97 sourceHandle = source.openForReadAttributeAccess(followLinks);
99 x.rethrowAsIOException(source);
102 // source attributes
106 x.rethrowAsIOException(source);
138 // if source file is a symbolic link then we must check for LinkPermission
143 final String sourcePath = asWin32Path(source);
172 (source.getFileSystem().supportsLinks() && !followLinks) ?
188 x.rethrowAsIOException(source, target);
205 x.rethrowAsIOException(source, target);
211 copySecurityAttributes(source, target, followLinks);
224 String linkTarget = WindowsLinkSupport.readLink(source);
250 copySecurityAttributes(source, target, followLinks);
256 * Move file from source to target
258 static void move(WindowsPath source, WindowsPath target, CopyOption... options)
283 source.checkWrite();
287 final String sourcePath = asWin32Path(source);
297 source.getPathForExceptionMessage(),
301 x.rethrowAsIOException(source, target);
306 // get attributes of source file
316 sourceHandle = source.openForReadAttributeAccess(false);
318 x.rethrowAsIOException(source);
321 // source attributes
325 x.rethrowAsIOException(source);
387 x.rethrowAsIOException(source, target);
395 x.rethrowAsIOException(source, target);
400 copySecurityAttributes(source, target, false);
415 String linkTarget = WindowsLinkSupport.readLink(source);
440 copySecurityAttributes(source, target, false);
443 // delete source
459 x.rethrowAsIOException(source);
474 * Copy DACL/owner/group from source to target
476 private static void copySecurityAttributes(WindowsPath source,
481 String path = WindowsLinkSupport.getFinalPath(source, followLinks);