Add settings to prevent file/directory lost