Suppose I have a path like this:

```
/folderA/folderB/folderC/item1
/folderA/folderB/folderX/item2
/folderA/folderB/folderF/item1
/folderA/folderB/folderQ/item5

```

How do I get the last two elements of the file path?

```
folderC/item1
folderX/item2
folderF/item1
folderQ/item5

```

I know I can git either the directory or the file by

```
>>> os.path.basename('/folderA/folderB/folderC/item1')
>>> item1

>>> os.path.dirname('/folderA/folderB/folderC/item1')
>>> /folderA/folderB/folderC/

```