I need to touch a file with an absolute file name such as: /opt/test/test.txt, but I\'m not sure if there is /opt/test existed on the system. So the code should similar with thi
It silently creates the structure above the file if not present, and is perfectly safe to use when passed a single filename without any directory in front of it.