<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def filepaths_in_dir(path):
 """Find all files in a directory, and return the relative paths to those files. Args: path (str):
 the directory path to walk Returns: list: the list of relative paths to all files inside of ``path`` or its subdirectories. """

    filepaths = []
    for root, directories, filenames in os.walk(path):
        for filename in filenames:
            filepath = os.path.join(root, filename)
            filepath = filepath.replace(path, '').lstrip('/')
            filepaths.append(filepath)
    return filepaths