Skip to content

Commit

Permalink
swap link and target order
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 16, 2024
1 parent f195acd commit 37aae7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/it/dangling-symlinks/setup.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ try
File target = new File( targetDir, "link-target.txt" );

System.out.println( "Creating symlink " + link + " -> " + target );
Files.createSymbolicLink( target.toPath(), link.toPath() );
Files.createSymbolicLink( link.toPath(), target.toPath() );
if ( !link.exists() )
{
System.out.println( "Platform does not support symlinks, skipping test." );
Expand Down
2 changes: 1 addition & 1 deletion src/it/symlink-dont-follow/setup.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for ( pair : pairs )
println "Creating symlink " + link + " -> " + target;
Path targetPath = target.toPath();
Path linkPath = link.toPath();
Files.createSymbolicLink( (Path) targetPath, (Path) linkPath );
Files.createSymbolicLink( linkPath, targetPath );
if ( !link.exists() )
{
println "Platform does not support symlinks, skipping test.";
Expand Down

0 comments on commit 37aae7e

Please sign in to comment.