Fix priority queue
Create the parent directory of the destination if it doesn't exits