Re: Getting directory name from a FileSelection widget?
- From: "Jason Bodnar" <jason shakabuku org>
- To: Dermot Musgrove <dermot glade perl connectfree co uk>
- Cc: gtk-perl-list gnome org
- Subject: Re: Getting directory name from a FileSelection widget?
- Date: Wed, 5 Jun 2002 21:49:00 -0500
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]