cleanup: Add "target" option for cleanup config 94/230894/1 accepted/tizen/5.5/unified/20200417.152904 submit/tizen_5.5/20200416.012652 submit/tizen_5.5/20200416.070629
authorYunmi Ha <yunmi.ha@samsung.com>
Mon, 13 Apr 2020 03:40:30 +0000 (12:40 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 16 Apr 2020 01:17:21 +0000 (01:17 +0000)
commit7b4ac19e962d51f683ecec894e23599d3d363c01
tree61fad8060f0f4d0be9b1fec5d89133b1a8595929
parentf4a52178d75fe59b60b2d2b058773edc016303d8
cleanup: Add "target" option for cleanup config

target has 3 options.
- all : delete all subfiles including the root path
- file : delete all subfiles excluding the root path
- oldfile : delete all old files which has "*.[0-9]" format

Change-Id: I4213be3c764272ebf2bed5e50c05f0d541ac88cc
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit 6b8cf094c6552f8a9fb580428f60fc84e8e9fa31)
src/storage/cleanup.c
src/storage/cleanup_config.c
src/storage/cleanup_config.h
src/storage/sample-cleanup-storage.conf