Create necessary path on file edit