Creates fileID function, Now we creates the destination directory if it doesnt exist