All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_FileShortcutUtil Class Reference

#include <UT_FileShortcutUtil.h>

Public Member Functions

 UT_FileShortcutUtil ()
 ~UT_FileShortcutUtil ()
bool resolve (const char *shortcut_path, UT_String &real_path, bool prompt_missing, bool *is_dir=NULL) const
bool create (const char *shortcut_path, const char *real_path) const
 Create a shortcut. More...

Detailed Description

Definition at line 24 of file UT_FileShortcutUtil.h.

Constructor & Destructor Documentation

UT_FileShortcutUtil::UT_FileShortcutUtil ( )
UT_FileShortcutUtil::~UT_FileShortcutUtil ( )

Member Function Documentation

bool UT_FileShortcutUtil::create ( const char *  shortcut_path,
const char *  real_path 
) const

Create a shortcut.

bool UT_FileShortcutUtil::resolve ( const char *  shortcut_path,
UT_String real_path,
bool  prompt_missing,
bool *  is_dir = NULL 
) const

Find the real path represented by the give shortcut. If prompt_missing is true, then when the OS fails to find the shortcut target it will ask the user. When given the is_dir flag, it will be set to true if the real path is a directory. This function returns true on success.

The documentation for this class was generated from the following file: