Haiku API Bindings
FindDirectory
Not logged in

Documentation | StorageKit | FindDirectory

SYNOPSIS

Perl

use HaikuR1::FindDirectory qw(find_directory B_DESKTOP_DIRECTORY);

my $path = find_directory(B_DESKTOP_DIRECTORY)

Python

from HaikuR1.StorageKit import find_directory, B_DESKTOP_DIRECTORY

path = find_directory(B_DESKTOP_DIRECTORY)

Python

Note that FindDirectory does not actually exist as a submodule; instead, the constants are imported from StorageKit.

DESCRIPTION

Exposes the find_directory function and constants

For more information on FindDirectory, see the Haiku Book description.

FUNCTIONS

find_directory

Returns the path for the given directory constant.

Perl

find_directory($which, $createIt, $volume);

Python

find_directory(which, createIt, volume)

CONSTANTS

Directories

Perl

use HaikuR1::FindDirectory qw(:directory_which)

Python

Python does not support export tags.

find_path_flags

Perl

use HaikuR1::FindDirectory qw(:find_path_flags)

Python

Python does not support export tags.

path_base_directory

Perl

use HaikuR1::FindDirectory qw(:path_base_directory)

Python

Python does not support export tags.