Page 1 of 1

Path Splitter

Posted: Fri Jul 31, 2015 11:55 am
by tulamide
Two convenience modules:

1) path splitter
splits a file path into folder path and file name. Propery allows to have a trailing '\' either on or off.

2) filename splitter
splits a file name into name and extension. Property allows to have a leading '.' either on or off.

Any feedback helps encouraging. Thank you.

Re: Path Splitter

Posted: Fri Jul 31, 2015 1:06 pm
by TheOm
Why reimplement functionality that's already in the ruby standard library?
path_splitter_rb.fsm
(1.02 KiB) Downloaded 1233 times

Re: Path Splitter

Posted: Fri Jul 31, 2015 3:38 pm
by tulamide
TheOm wrote:Why reimplement functionality that's already in the ruby standard library?


tulamide wrote:Propery allows to have a trailing '\' either on or off.
Property allows to have a leading '.' either on or off.


Therefore.