Soldato
- Joined
- 26 Aug 2012
- Posts
- 4,434
- Location
- North West
I'm trying to copy a file from a source path to a destination path and make any required directories in the destination path.
An example would be as below where the 'blah2' directory does not exist at the destination.
cp /etc/blah1/blah2/file1.file /opt/blah1/blah2/file1.file
I need this as I have a php web app that needs to cache certain things.
Any help would be much appreciated.
An example would be as below where the 'blah2' directory does not exist at the destination.
cp /etc/blah1/blah2/file1.file /opt/blah1/blah2/file1.file
I need this as I have a php web app that needs to cache certain things.
Any help would be much appreciated.