nextcloud / files_confidential

Workflows for handling and classifying confidential files in Nextcloud
GNU Affero General Public License v3.0
5 stars 1 forks source link

Classification of files/folders based on the text inside of the name #159

Open ostasevych opened 3 months ago

ostasevych commented 3 months ago

Hi! I would like to classify the files/folders created or renamed to by users by adding some tag (protected in my case) if the file name of folder name contains certain pattern, eg, pri case insensitive.

So, I have added a rule with custom regex /pri/i

image

Created a file file_pri.docx but nothing happened: so the tag protected hasn't been added to the file.

How should it work?

orandev commented 2 months ago

Hello You can install this app: https://github.com/nextcloud/files_automatedtagging Then you go to Admin Settings > Flow > Automated tagging > Add new flow When "File is changed" and "File name" matches "/pri/i" Assign tag "protected"