Allow publishing data to a directory with trailing slash.
Closes #51 (closed) by splitting the file path again if the second part is an empty string. This occurs if the given path has a trailing slash.
Closes #51 (closed) by splitting the file path again if the second part is an empty string. This occurs if the given path has a trailing slash.