File.split(file_name) â array
Class Public methods
Splits the given string into a directory and a file component and returns
them in a two-element array. See also File::dirname
and
File::basename
.
1 | File .split( "/home/gumby/.profile" ) #=> ["/home/gumby", ".profile"] |
Please login to continue.