File tree Expand file tree Collapse file tree
src/main/java/edu/wpi/first/wpilib/opencv/installer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ private static void install(ArtifactType type) {
195195 break ;
196196 case HEADERS :
197197 artifactId = headersName ;
198+ v = openCvVersion ;
198199 installLocation += platform .getHeadersInstallLocation ();
199200 break ;
200201 case NATIVES :
@@ -295,11 +296,15 @@ private static void unsafeCopy(Path src, Path dst) {
295296 if (dst .getParent () != null && !Files .exists (dst .getParent ())) {
296297 Files .createDirectories (dst .getParent ());
297298 }
298- if (Files .exists (dst )) {
299- System .out .println (" Destination file already exists, overwriting" );
300- Files .delete (dst );
299+ if (Files .isDirectory (dst )) {
300+ copyAll (src , dst );
301+ } else {
302+ if (Files .exists (dst )) {
303+ System .out .println (" Destination file already exists, overwriting" );
304+ Files .delete (dst );
305+ }
306+ Files .copy (src , dst );
301307 }
302- Files .copy (src , dst );
303308 }
304309 } catch (IOException e ) {
305310 throw new RuntimeException ((e ));
You can’t perform that action at this time.
0 commit comments