Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Path Splitter

Post any examples or modules that you want to share here

Path Splitter

Postby tulamide » Fri Jul 31, 2015 11:55 am

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 1163 times
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Path Splitter

Postby TheOm » Fri Jul 31, 2015 1:06 pm

Why reimplement functionality that's already in the ruby standard library?
path_splitter_rb.fsm
(1.02 KiB) Downloaded 1195 times
TheOm
 
Posts: 103
Joined: Tue Jan 28, 2014 7:35 pm
Location: Germany

Re: Path Splitter

Postby tulamide » Fri Jul 31, 2015 3:38 pm

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)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany


Return to User Examples

Who is online

Users browsing this forum: No registered users and 27 guests