fscrawler icon indicating copy to clipboard operation
fscrawler copied to clipboard

Index settings for hidden files and folders

Open k7en opened this issue 5 years ago • 10 comments

Hi, I don't want to index hidden folders. Can I set it to not index hidden files and folders?

Best regard.

k7en avatar Oct 24 '19 08:10 k7en

On which OS?

dadoonet avatar Oct 24 '19 08:10 dadoonet

I'm using windows 10. Is there a setting method already?

k7en avatar Oct 24 '19 08:10 k7en

There is not an explicit option. But I'm normally trying to use excludes. Would that work on windows? Or should we think of supporting a new option if available on all OS?

dadoonet avatar Oct 24 '19 14:10 dadoonet

Thank you for your quick reply. Checking hidden folders and files one by one and setting them to exclude can be difficult. (If there are many folders and files) If we have an option to automatically exclude hidden folders and files, it would be useful.

k7en avatar Oct 27 '19 10:10 k7en

I meant that on Unix systems, every file starting with a dot is an hidden file. So using exclude option to filter all files starting with a dot makes the trick. Could you do something similar on windows?

dadoonet avatar Oct 27 '19 11:10 dadoonet

I'm sorry. There was a lack of explanation. In Windows, there is no rule that hidden files and folders start with a dot. This is determined by the attribute setting. For example, https://www.windowscentral.com/how-hide-files-and-folders-windows-10

k7en avatar Oct 27 '19 23:10 k7en

I guess this is something doable and which makes sense to me. Having skip_hidden: true by default makes sense to me.
Would you like to contribute some code to the project?

dadoonet avatar Nov 26 '19 15:11 dadoonet

i tried to add the exclude setting "/." on linux system, but it then excludes all files.

maksonlee avatar Dec 31 '19 01:12 maksonlee

@maksonlee Should it be something like \..*? Or \\..*?

dadoonet avatar Jan 07 '20 15:01 dadoonet

I think should it be like - "*/[.]*"

adamviusa avatar Mar 30 '20 15:03 adamviusa