1

When I press F5 it has one of the options to dive in to subdir if exists but what does that actually mean?

You'd think it means if you copy without that option it would copy just one level, but without that option it copies the entire tree. Which is why I wonder what the option is for?

Thanks.

1 Answer 1

6

With this option enabled a source directory will be copied/moved into a new subdirectory if a target directory of the same name already exists.

e.g.

You are copying a folder DATA with files to a location that already has a DATA folder. With this option enabled mc will put the source DATA folder into the existing DATA folder, so the new data is now in DATA/DATA.

The option is badly worded since a lot of people think about it as a "recursive" option, thinking it applies to source directories, but the "subdir" is in the target location.

I just learned about this too after years of using mc.

1
  • What's the use case for that option? Also thought it meant recursive. Commented Jun 22, 2024 at 2:18

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.