- # Chunk 3: 0 event
- # Do not check in per-pid, because the folder is really empty, no metadata
- # or stream files.
- if test $per_pid = 1; then
- rm -rf $local_path/${chunk_pattern}-3
- else
- validate_trace_empty $local_path/${chunk_pattern}-3
- if [ $? -eq 0 ]; then
- # Only delete if successful
- rm -rf $local_path/${chunk_pattern}-3
- fi
- fi
-
- # The session folder after all chunks have been removed is empty
- test -z "$(\ls -A $local_path)"
- empty=$?
- ok $empty "Trace folder is now empty"