writeFileData

Try to write the data to the destination directory.

If the directory do not exist try and create it.

writeFileData
(
T
)
(
ref T data
)

Meta