fixed setMetadata() to use the formatted fullPath