Downloading files containing specific path on the remote server

Advertisement

Jonatantwn
Joined:
Posts:
1

Downloading files containing specific path on the remote server

Hi Forum!

Does anyone know, if it is somehow possible to target files, that contains a path name accross multiple directories?

For an example:

Folder:/
Domain.com/content/system/unwanted/malicious.php
Domain.com/content/assets/objects/unwanted/anothermalicious.php

Is it possible to create a deletion process that checks the paths of all files, and then deletes them if the path contains unwanted?

Currently i have no example of code to execute this, i am struggling to find documentation regarding if this is even possible.

Can anyone point me in the right direction? 🙂

Best regards
Jonatan

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum