We have the full path of the file:
/dir1/dir2/dir3/sample_file.tgz
Basically, I would like to end up with this string:
dir3/sample_file.tgz
We can solve it with regex or with .split("/") and then take and concatenate the last two items in the list.....but I am wondering if we can do this more stylish with os.path.dirname() or something like that?