where s is the string content and path the filename associated with s.
I have not tried a filename with a path. I wonder if this path is absolute or relative to the current directory. Moreover if the path contains a not existing folder on the server is it created?