after a second thought, this is not really necessary.

for deeper levels, the user can specify the path prefix nevertheless, e.g., logs/spark/master- will exclude files like logs/spark/master-12345.