Handle relative and absolute paths for file system adapter