NAME
Tk::FileBrowser::Item - Item object for Tk::FileBrowser
SYNOPSIS
use Tk::FileBrowser::Item;
my $item = new Tk::FileBrowsr::Item($file);
DESCRIPTION
Item object used in Tk::FileBrowser. You should never have to create one yourself.
METHODS
- accessed
-
Returns the accessed time stamp.
- child($name, $itemobject)
-
Throws a warning if this object does not represent a directory. Sets or returns the item object of $name.
- children
-
Returns a list of children if this object represents a folder. Otherwise returns undef.
- created
-
Returns the created time stamp.
- isDir
-
Returns true if this object reprents a directory.
- isFile
-
Returns true if this object reprents a file.
- isLink
-
Returns true if this object reprents a symbolic link.
- isOpen($flag)
-
Returns undef if this object does not represent a directory. Sets or returns the open flag.
- loaded($flag)
-
Returns undef if this object does not reprent a directory. Sets or returns the loaded flag.
- loadStat($item)
-
Loads the details of $item. $item can be a file, folder or symlink.
- modified
-
Returns the modified time stamp.
- name
-
Returns the file nameof the disk item loaded.
- size
-
Returns size the disk item loaded. if it is a directory it will return the number of children. Otherwise it will return item size if the size is known.
LICENSE
Same as Perl.
AUTHOR
Hans Jeuken (hanje at cpan dot org)
BUGS AND CAVEATS
If you find any bugs, please contact the author.