fix: change what is considered a folder
fix: if parents is empty, log it