```python
target[-1] == os.sep
```
If somehow (e. g. in case of manual edit) closing separator was removed.