Works for subdirectotories, but naive