Delete files with special characters in filenames

前端 未结 4 708
渐次进展
渐次进展 2020-12-11 23:36

I need to delete old files with special characters in filenames like space,,,(,),! and so on via PHP. Classic unlin

4条回答
  •  无人及你
    2020-12-11 23:53

    The way I do it in Linux is to use absolute paths, like "rm ./filename" that is dot slash.

    You can also use escape charachters. Like "rm \-filename" that is - backspash hyphen.

提交回复
热议问题