Page 1 of 1
How to avoid copying hidden directories?
Posted: 18 Sep 2010, 15:52
by Eric
Hi,
I'm trying to copy a directory with many subdirectories and hidden directories. It's a subversion directory structure.
So I selected the root diretory, in the advanced copy option I deselected the Hidden attribute and started copying.
But as result I get anyway the whole struture, including the hidden diretories.
Is this behavior how it should be?
If yes, how I can copy the files without the hidden dirs?
Thanks
Eric
Re: How to avoid copying hidden directories?
Posted: 18 Sep 2010, 17:57
by Jan Rysavy
Eric, this filter doesn't apply to directories. The workaround: copy whole directory structure (including hidden directories). Use Find command to find Hidden directories. Select all found directories and delete them.
Re: How to avoid copying hidden directories?
Posted: 18 Sep 2010, 21:25
by Eric
Jan, thanks for answering.
This was my solution too, but it's time intense when you about 3'000 small subdirectories.
Wouldn't be nice to have a such option?

Re: How to avoid copying hidden directories?
Posted: 18 Sep 2010, 22:39
by Ether
Maybe you should use the Export command instead of copying out of a working copy.
Re: How to avoid copying hidden directories?
Posted: 19 Sep 2010, 00:20
by Eric
Ether wrote:Maybe you should use the Export command instead of copying out of a working copy.
Ether, thanks. It didn't came to my mind.

Re: How to avoid copying hidden directories?
Posted: 04 Oct 2010, 21:12
by therube
this filter doesn't apply to directories
Why?
(Simple question, not really looking for an answer, perhaps an RFE.
Also noticed <just before this thread was started> that this also occurs with directories when Panel Filtering, Ctrl+F12.)
Re: How to avoid copying hidden directories?
Posted: 04 Oct 2010, 21:31
by Ether
therube wrote:Why?
Because the behavior of filtering upon directories is not clearly defined ( = universally understood and recognized), especially if acting as a panel view filter. The main problem is that people expect that they'll see all the files that match the filtering mask, but if some directories are hidden due to it, then there can be any number of possibly wanted files inside those directories.
One of the possible solutions is to implement two filters - one for files and one for directories. A much better solution is some kind of universal regexp filtering of (not only filename, but) the file's full path with the possibility of cascading multiple filters, such as:
- |\\\.svn\\ (first exlude everything inside .svn)
- .*(then include all; implicit)
Re: How to avoid copying hidden directories?
Posted: 06 Oct 2010, 00:24
by Kanopus
It's not very neat, but you can use xcopy for this purpose. Add a usermenu entry with command xcopy.exe and parameter /s /i /y "$(Name)" "$(FullPathInactive)\$(Name)".
BTW: A regular filter expression may fit all needs, but a simple option "exclude hidden subdirectories" in copy / move dialogs would cover most cases and is more intuitive. I would prefer such an option.