How to avoid copying hidden directories?

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
Eric
Posts: 77
Joined: 28 Apr 2006, 22:52

How to avoid copying hidden directories?

Post 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
Win2012, Win7, Win8 and Win8.1 x64 (german and english) | AS 3.0 beta 4 (x64)
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: How to avoid copying hidden directories?

Post 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.
Eric
Posts: 77
Joined: 28 Apr 2006, 22:52

Re: How to avoid copying hidden directories?

Post 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? :)
Win2012, Win7, Win8 and Win8.1 x64 (german and english) | AS 3.0 beta 4 (x64)
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: How to avoid copying hidden directories?

Post by Ether »

Maybe you should use the Export command instead of copying out of a working copy.
Ελληνικά rulez.
Eric
Posts: 77
Joined: 28 Apr 2006, 22:52

Re: How to avoid copying hidden directories?

Post 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. :?
Win2012, Win7, Win8 and Win8.1 x64 (german and english) | AS 3.0 beta 4 (x64)
therube
Posts: 681
Joined: 14 Dec 2006, 06:22

Re: How to avoid copying hidden directories?

Post 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.)
WinXP Pro SP3 or Win7 x86 | SS 2.54
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: How to avoid copying hidden directories?

Post 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:
  1. |\\\.svn\\ (first exlude everything inside .svn)
  2. .*(then include all; implicit)
Ελληνικά rulez.
Kanopus
Posts: 16
Joined: 12 Jul 2008, 00:20

Re: How to avoid copying hidden directories?

Post 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.
Post Reply