Handle recursive operation correctly. Debug filesystem operations