Answers the file extension of path. >>> path2Extension('/xxx/yyy/zzz/Agency_FB-Compressed.ufo') 'ufo' >>> path2Extension('/xxx/yyy/zzz/Agency_FB-Compressed.TTF') 'ttf'
(path)
| 603 | return '/'.join(path.split('/')[:-1]) |
| 604 | |
| 605 | def path2Extension(path): |
| 606 | """Answers the file extension of path. |
| 607 | |
| 608 | >>> path2Extension('/xxx/yyy/zzz/Agency_FB-Compressed.ufo') |
| 609 | 'ufo' |
| 610 | >>> path2Extension('/xxx/yyy/zzz/Agency_FB-Compressed.TTF') |
| 611 | 'ttf' |
| 612 | """ |
| 613 | return path.split('.')[-1].lower() |
| 614 | |
| 615 | def path2ScaledImagePath(path, w=None, h=None, index=None, extension=None, scaledPath=None): |
| 616 | """Answer the path where scaled images go to, also altering their name. If |
no outgoing calls
no test coverage detected