1 (edited by hidefiles 2012-07-25 11:33:05)

Topic: Hide all files

Hi,

i can make it work to hide specific folder's e.g. with

HideFiles "^(file1|file2|folder1|folder2)$"

But a customer want to hide all uploaded files....

But it doesn't work with

HideFiles "^(*)$"

or

HideFiles "*"

or

HideFiles "(*)"

I think one of this three, is a right regex syntax, isn't it?

Has anyone a hint for me?

Re: Hide all files

Hi,

The correct syntax is :

HideFiles "^.*$"

Re: Hide all files

Ok, thanks!

But now, after the login (with WinSCP) I get:

No such file or directory.

Error code: 2
Error message from server (en): No such file
Request code: 11

after that, i'm in and cannot see any file, like expected.

But if I want to upload a file, there is again:

No such file or directory.
Error code: 2
Error message from server (en): No such file
Request code: 3

If i remove again the HideFiles Option the problem is away...

Re: Hide all files

I think that WinSCP don't love when you hide "." and "..".

Maybe with this regexp, it should work better:

HideFiles "^[^\.].*$"