<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_category(filename):
 """ Get a default category name from a filename in a cross-platform manner """

    return '/'.join(os.path.dirname(filename).split(os.sep))