public void copyAttributes ( File file , File copy , AttributeCopyOption copyOption ) { switch ( copyOption ) { case ALL : file . copyAttributes ( copy ) ; break ; case BASIC : file . copyBasicAttributes ( copy ) ; break ; default : // don't copy } }
Copies the attributes of the given file to the given copy file .