Skip to content

Commit

Permalink
Tools/rename.fsx: prevent links & warn about them
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Jun 10, 2023
1 parent 22fa4ff commit c516481
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Tools/rename.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,14 @@ let rec Rename(dir: DirectoryInfo) : unit =
CheckTimes allEntries

for subDir in subDirs do
Rename subDir
if not(isNull subDir.LinkTarget) then
Console.WriteLine(
sprintf
"Skipping link %s (if using robocopy, exclude them via /xj)"
subDir.FullName
)
else
Rename subDir

for file in files do
CheckName file.Name file.FullName
Expand Down

0 comments on commit c516481

Please sign in to comment.