Re: Getting directory name from a FileSelection widget?



Jason Bodnar wrote:

How do you get the directory name from a FileSelection widget? Is there
something like get_filename but get_directory?
Hi,

  use File::Basename qw( dirname );
  my $dir = dirname($fileselection->get_filename);

regards, Dermot


That worked great. I'm grabbing multiple filenames so I had to get them from
the file_list and didn't realize that get_filename provided the full filename.

Thank you,

Jason

--
Jason Bodnar
jason shakabuku org
http://www.shakabuku.org




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]