public static LocalCall < Boolean > copy ( String src , String dst , boolean recurse , boolean removeExisting ) { Map < String , Object > args = new LinkedHashMap <> ( ) ; args . put ( "src" , src ) ; args . put ( "dst" , dst ) ; args . put ( "recurse" , recurse ) ; args . put ( "remove_existing" , removeExisting ) ; return new LocalCall <> ( "file.copy" , Optional . empty ( ) , Optional . of ( args ) , new TypeToken < Boolean > ( ) { } ) ; }
Copy a file or directory from src to dst