Path Splitter

Post any examples or modules that you want to share here
Post Reply
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Path Splitter

Post 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.
Attachments
path_splitter.fsm
(923 Bytes) Downloaded 1199 times
"There lies the dog buried" (German saying translated literally)
TheOm
Posts: 103
Joined: Tue Jan 28, 2014 7:35 pm
Location: Germany

Re: Path Splitter

Post by TheOm »

Why reimplement functionality that's already in the ruby standard library?
path_splitter_rb.fsm
(1.02 KiB) Downloaded 1233 times
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Path Splitter

Post 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.
"There lies the dog buried" (German saying translated literally)
Post Reply