![]() ![]() NOFOLLOW_LINKS – Indicates that symbolic links should not be followed.The exact file attributes supported are file system and platform dependent, but last-modified-time is supported across platforms and is copied to the target file. COPY_ATTRIBUTES – Copies the file attributes associated with the file to the target file.If the target is a non-empty directory, the copy fails with the DirectoryNotEmptyException exception. If the target is a symbolic link, the link itself is copied (and not the target of the link). REPLACE_EXISTING – Performs the copy even when the target file already exists.The following StandardCopyOption and LinkOption enums are supported: If you want to copy the link itself, and not the contents of the link, specify either the NOFOLLOW_LINKS or REPLACE_EXISTING option. When copying a symbolic link, the target of the link is copied. However, files inside the directory are not copied, so the new directory is empty even when the original directory contains files. ![]() The copy fails if the target file exists, unless the REPLACE_EXISTING option is specified.ĭirectories can be copied. You can copy a file or directory by using theĬopy(Path, Path, CopyOption.) method. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |