Revert "fixed setMetadata() to use the formatted fullPath"

This reverts commit 18ef98aaae19e07cd1e0c8d6e1f37418a9583f85.