<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getRoot():
 """Convenience to return the media root with forward slashes"""

    root = settings.MEDIA_ROOT.replace('\\', '/')
    if not root.endswith('/'):
        root += '/'

    return path.Path(root)