5 Oct
2012
5 Oct
'12
8:38 p.m.
On Sat, 06 Oct 2012 01:27:49 +0100
Richard Oudkerk
On 06/10/2012 12:48am, Antoine Pitrou wrote:
p = PureNTPath('c:/orders/12345/abc67890.dbf')
>>p.parent()[p.name.split('.')[0] + '.csv'] PureNTPath('c:\\orders\\12345\\abc67890.csv')
Any suggestion to ease this use case a bit?
Maybe p.basename could be shorthand for p.name.split('.')[0].
Wouldn't there be some confusion with os.path.basename:
Richard
-- Software development and contracting: http://pro.pitrou.net