unit: currentPath must be a string for os.walk