added methods for saving and deleting files and folders