The following functions can be used to manipulate filenames in a portable way over multiple platforms.