Path.rsplit(sep=None, maxsplit=-1)[source]

Return a list of the words in the string, using sep as the delimiter string.


The delimiter according which to split the string. None (the default value) means split according to any whitespace, and discard empty strings from the result.


Maximum number of splits to do. -1 (the default value) means no limit.

Splits are done starting at the end of the string and working to the front.