perf tools: Make rm_rf() remove single file
authorJiri Olsa <jolsa@kernel.org>
Wed, 20 Feb 2019 12:28:00 +0000 (13:28 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Feb 2019 20:09:28 +0000 (17:09 -0300)
commitb4409ae112caa6315f6ee678e953b9fc93e6919c
tree02414271cef0931689a94445bc151049217c2e77
parentdeb83da16c1f3412fcb33c8944b3d854c4b265d6
perf tools: Make rm_rf() remove single file

Let rm_rf() remove a file if it's provided by path, not just
directories.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190220122800.864-7-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/util.c