Implemented moving the file and added removeEmptryDirectory function