How to edit a folder or subfolder