add file and folder function