def _path_to_dir_key(self, path):
_path = relpath(normpath(path))<EOL>_key = (<EOL>forcedir("<STR_LIT>".format(self._prefix, _path))<EOL>.lstrip("<STR_LIT:/>")<EOL>.replace("<STR_LIT:/>", self.delimiter)<EOL>)<EOL>return _key<EOL>
Converts an fs path to a s3 key.