20 #ifndef INCLUDED_OSL_FILE_HXX
21 #define INCLUDED_OSL_FILE_HXX
172 return static_cast< RC >(
osl_getAbsoluteFileURL( ustrBaseDirectoryURL.pData, ustrRelativeFileURL.pData, &ustrAbsoluteFileURL.pData ) );
245 return static_cast< RC >(
osl_searchFileURL( ustrFileName.pData, ustrSearchPath.pData, &ustrFileURL.pData ) );
316 rtl_uString* pustr_dir_url = pustrDirectoryURL ? pustrDirectoryURL->pData : 0;
317 rtl_uString** ppustr_tmp_file_url = pustrTempFileURL ? &pustrTempFileURL->pData : 0;
351 _aHandle = rDevice._aHandle;
381 _aHandle = newHandle;
688 memset(&_aStatus, 0,
sizeof(_aStatus));
727 "no FileStatus Type determined");
784 "no FileStatus Attributes determined");
799 "no FileStatus CreationTime determined");
814 "no FileStatus AccessTime determined");
829 "no FileStatus ModifyTime determined");
843 "no FileStatus FileSize determined");
857 "no FileStatus FileName determined");
874 "no FileStatus FileURL determined");
890 "no FileStatus LinkTargetURL determined");
929 File( const ::rtl::OUString& ustrFileURL ): _pData( 0 ), _aPath( ustrFileURL ) {}
993 return static_cast< RC >(
osl_openFile( _aPath.pData, &_pData, uFlags ) );
1020 return static_cast< RC >( Error );
1173 inline RC read(
void *pBuffer, sal_uInt64 uBytesRequested, sal_uInt64& rBytesRead )
1175 return static_cast< RC >(
osl_readFile( _pData, pBuffer, uBytesRequested, &rBytesRead ) );
1212 inline RC write(
const void *pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64& rBytesWritten)
1214 return static_cast< RC >(
osl_writeFile( _pData, pBuffer, uBytesToWrite, &rBytesWritten ) );
1244 return static_cast< RC >(
osl_readLine( _pData, reinterpret_cast<sal_Sequence**>(&aSeq) ) );
1279 OSL_PRECOND(_pData,
"File::sync(): File not open");
1309 inline static RC copy( const ::rtl::OUString& ustrSourceFileURL, const ::rtl::OUString& ustrDestFileURL )
1311 return static_cast< RC >(
osl_copyFile( ustrSourceFileURL.pData, ustrDestFileURL.pData ) );
1338 inline static RC move( const ::rtl::OUString& ustrSourceFileURL, const ::rtl::OUString& ustrDestFileURL )
1340 return static_cast< RC >(
osl_moveFile( ustrSourceFileURL.pData, ustrDestFileURL.pData ) );
1371 inline static RC remove( const ::rtl::OUString& ustrFileURL )
1391 inline static RC setAttributes( const ::rtl::OUString& ustrFileURL, sal_uInt64 uAttributes )
1419 const ::rtl::OUString& ustrFileURL,
1428 &rLastWriteTime ) );
1481 _pData = rItem._pData;
1497 return _pData != NULL;
1539 rItem._pData = NULL;
1579 return static_cast< RC >(
osl_getFileStatus( _pData, &rStatus._aStatus, rStatus._nMask ) );
1673 Directory( const ::rtl::OUString& strPath ): _pData( 0 ), _aPath( strPath )
1728 inline bool isOpen() {
return _pData != NULL; }
1752 return static_cast< RC >( Error );
1881 const ::rtl::OUString& ustrDirectoryURL,
1884 return static_cast< RC >(
1916 inline static RC remove( const ::rtl::OUString& ustrDirectoryURL )
1974 const ::rtl::OUString& aDirectoryUrl,
1978 aDirectoryUrl.pData,
1980 aDirectoryCreationObserver));
1986 #endif // INCLUDED_OSL_FILE_HXX
#define osl_Volume_Attribute_RAMDisk
Definition: file.h:542
DirectoryItem & operator=(const DirectoryItem &rItem)
Assignment operator.
Definition: file.hxx:1474
inline::rtl::OUString getFileSystemName() const
Determine the name of the volume device's File System.
Definition: file.hxx:600
SAL_DLLPUBLIC oslFileError osl_removeDirectory(rtl_uString *pustrDirectoryURL)
Remove an empty directory.
#define osl_FileStatus_Mask_LinkTargetURL
Definition: file.h:374
rtl::OUString getMountPath()
Get the full qualified URL where a device is mounted to.
Definition: file.hxx:391
bool isIdenticalTo(const DirectoryItem &pOther)
Determine if a directory item point the same underlying file.
Definition: file.hxx:1598
SAL_DLLPUBLIC oslFileError osl_createDirectoryPath(rtl_uString *aDirectoryUrl, oslDirectoryCreationCallbackFunc aDirectoryCreationCallbackFunc, void *pData)
Create a directory path.
sal_uInt64 uTotalSpace
Total available space on the volume for the current process/user.
Definition: file.h:576
unsigned char sal_Bool
Definition: types.h:48
sal_uInt32 uValidFields
Determines which members of the structure contain valid data.
Definition: file.h:572
FileStatus(sal_uInt32 nMask)
Constructor.
Definition: file.hxx:685
static RC getSystemPathFromFileURL(const ::rtl::OUString &ustrFileURL,::rtl::OUString &ustrSystemPath)
Convert a file URL into a system dependent path.
Definition: file.hxx:190
#define osl_FileStatus_Mask_Type
Definition: file.h:366
RC open(sal_uInt32 uFlags)
Open a regular file.
Definition: file.hxx:991
inline::rtl::OUString getFileURL() const
Get the URL of the file.
Definition: file.hxx:870
#define osl_File_OpenFlag_Read
Definition: file.h:638
#define osl_Volume_Attribute_Remote
Definition: file.h:539
RC reset()
Resets the directory item enumeration to the beginning.
Definition: file.hxx:1773
The FileStatus class.
Definition: file.hxx:652
SAL_DLLPUBLIC oslFileError osl_setFileTime(rtl_uString *pustrFileURL, const TimeValue *aCreationTime, const TimeValue *aLastAccessTime, const TimeValue *aLastWriteTime)
Set the file time.
C++ class representing a SAL byte sequence.
Definition: byteseq.h:161
static RC createTempFile(::rtl::OUString *pustrDirectoryURL, oslFileHandle *pHandle,::rtl::OUString *pustrTempFileURL)
Creates a temporary file in the directory provided by the caller or the directory returned by getTemp...
Definition: file.hxx:311
rtl::OUString getURL() const
Obtain the URL.
Definition: file.hxx:946
#define osl_FileStatus_Mask_AccessTime
Definition: file.h:369
sal_uInt32 uStructSize
Must be initialized with the size in bytes of the structure before passing it to any function...
Definition: file.h:389
sal_uInt32 uMaxNameLength
Maximum length of file name of a single item.
Definition: file.h:582
SAL_DLLPUBLIC oslFileError osl_getFileURLFromSystemPath(rtl_uString *pustrSystemPath, rtl_uString **ppustrFileURL)
Convert a system dependent path into a file URL.
RC getNextItem(DirectoryItem &rItem, sal_uInt32 nHint=0)
Retrieve the next item of a previously opened directory.
Definition: file.hxx:1802
#define osl_FileStatus_Mask_FileSize
Definition: file.h:371
VolumeDevice & operator=(const VolumeDevice &rDevice)
Assignment operator.
Definition: file.hxx:371
SAL_DLLPUBLIC oslFileError osl_readLine(oslFileHandle Handle, sal_Sequence **ppSequence)
Read a line from a file.
SAL_DLLPUBLIC oslFileError osl_releaseVolumeDeviceHandle(oslVolumeDeviceHandle Handle)
Release a volume device handle.
~File()
Destructor.
Definition: file.hxx:934
File(const ::rtl::OUString &ustrFileURL)
Constructor.
Definition: file.hxx:929
#define osl_FileStatus_Mask_Attributes
Definition: file.h:367
TimeValue getCreationTime() const
Get the creation time of this file.
Definition: file.hxx:795
static RC getCanonicalName(const ::rtl::OUString &ustrRequestedURL,::rtl::OUString &ustrValidURL)
Determine a valid unused canonical name for a requested name.
Definition: file.hxx:130
RC close()
Close an open file.
Definition: file.hxx:1010
static RC getTempDirURL(::rtl::OUString &ustrTempDirURL)
Retrieves the file URL of the system's temporary directory path.
Definition: file.hxx:258
#define osl_Volume_Attribute_Removeable
Definition: file.h:538
rtl_uString * ustrFileSystemName
Points to a string that receives the name of the file system type.
Definition: file.h:587
bool getFixedDiskFlag() const
Check the fixed disk flag.
Definition: file.hxx:517
void onDirectoryCreated(void *pData, rtl_uString *aDirectoryUrl)
Definition: file.hxx:1638
RC setSize(sal_uInt64 uSize)
Set the file size of an open file.
Definition: file.hxx:1111
SAL_DLLPUBLIC oslFileError osl_getVolumeDeviceMountPath(oslVolumeDeviceHandle Handle, rtl_uString **ppustrDirectoryURL)
Get the full qualified URL where a device is mounted to.
SAL_DLLPUBLIC oslFileError osl_getFileSize(oslFileHandle Handle, sal_uInt64 *pSize)
Get the file size of an open file.
void * oslDirectory
Definition: file.h:138
sal_uInt64 getFreeSpace() const
Determine the free space of a volume device.
Definition: file.hxx:552
SAL_DLLPUBLIC oslFileError osl_createDirectoryWithFlags(rtl_uString *url, sal_uInt32 flags)
Create a directory, passing flags.
struct _oslVolumeInfo oslVolumeInfo
RC readLine(::rtl::ByteSequence &aSeq)
Read a line from a file.
Definition: file.hxx:1242
RC getPos(sal_uInt64 &uPos)
Retrieve the current position of the internal pointer of an open file.
Definition: file.hxx:1061
VolumeInfo(sal_uInt32 nMask)
Constructor.
Definition: file.hxx:437
sal_uInt64 getFileSize() const
Get the size of the file.
Definition: file.hxx:839
TimeValue getAccessTime() const
Get the file access time.
Definition: file.hxx:810
static RC getAbsoluteFileURL(const ::rtl::OUString &ustrBaseDirectoryURL, const ::rtl::OUString &ustrRelativeFileURL,::rtl::OUString &ustrAbsoluteFileURL)
Convert a path relative to a given directory into an full qualified file URL.
Definition: file.hxx:170
bool isRegular() const
Is it a regular file?
Definition: file.hxx:756
bool getRemoteFlag() const
Check the remote flag.
Definition: file.hxx:473
Directory(const ::rtl::OUString &strPath)
Constructor.
Definition: file.hxx:1673
#define osl_Volume_Attribute_Case_Sensitive
Definition: file.h:546
bool getFloppyDiskFlag() const
Check the floppy disc flag.
Definition: file.hxx:506
#define osl_Volume_Attribute_FloppyDisk
Definition: file.h:543
SAL_DLLPUBLIC oslFileError osl_closeFile(oslFileHandle Handle)
Close an open file.
VolumeDevice(const VolumeDevice &rDevice)
Copy constructor.
Definition: file.hxx:349
SAL_DLLPUBLIC oslFileError osl_getVolumeInformation(rtl_uString *pustrDirectoryURL, oslVolumeInfo *pInfo, sal_uInt32 uFieldMask)
Retrieve information about a volume.
sal_uInt32 uValidFields
Determines which members of the structure contain valid data.
Definition: file.h:391
Type
Definition: file.hxx:669
RC isEndOfFile(sal_Bool *pIsEOF)
Test if the end of a file is reached.
Definition: file.hxx:1088
SAL_DLLPUBLIC oslFileError osl_writeFile(oslFileHandle Handle, const void *pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64 *pBytesWritten)
Write a number of bytes to a file.
Structure containing information about files and directories.
Definition: file.h:387
Main goals and usage hints.
SAL_DLLPUBLIC oslFileError osl_getNextDirectoryItem(oslDirectory Directory, oslDirectoryItem *pItem, sal_uInt32 uHint)
Retrieve the next item of a previously opened directory.
#define SAL_WARN_UNUSED_RESULT
Use this as markup for functions and methods whose return value must be checked.
Definition: types.h:309
sal_uInt64 uAttributes
File attributes.
Definition: file.h:395
RC write(const void *pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64 &rBytesWritten)
Write a number of bytes to a file.
Definition: file.hxx:1212
#define osl_Volume_Attribute_FixedDisk
Definition: file.h:541
DirectoryItem(const DirectoryItem &rItem)
Copy constructor.
Definition: file.hxx:1456
rtl_uString * ustrFileURL
Full URL of the file.
Definition: file.h:411
sal_uInt64 uFileSize
Size in bytes of the file.
Definition: file.h:405
VolumeDevice()
Constructor.
Definition: file.hxx:339
The directory item class object provides access to file status information.
Definition: file.hxx:1440
RC setPos(sal_uInt32 uHow, sal_Int64 uPos) SAL_WARN_UNUSED_RESULT
Set the internal position pointer of an open file.
Definition: file.hxx:1040
SAL_DLLPUBLIC oslFileError osl_getTempDirURL(rtl_uString **pustrTempDirURL)
Retrieves the file URL of the system's temporary directory path.
The VolumeInfo class.
Definition: file.hxx:413
Base class for all File System specific objects.
Definition: file.hxx:51
static RC move(const ::rtl::OUString &ustrSourceFileURL, const ::rtl::OUString &ustrDestFileURL)
Move a file or directory to a new destination or renames it.
Definition: file.hxx:1338
#define OSL_PRECOND(c, m)
Definition: diagnose.h:111
sal_uInt32 getMaxPathLength() const
Determine the maximal length of a path name.
Definition: file.hxx:588
sal_uInt32 uMaxPathLength
Maximum length of a full quallified path in system notation.
Definition: file.h:584
SAL_DLLPUBLIC oslFileError osl_getFileStatus(oslDirectoryItem Item, oslFileStatus *pStatus, sal_uInt32 uFieldMask)
Retrieve information about a single file or directory.
oslVolumeDeviceHandle * pDeviceHandle
Pointer to handle the receives underlying device.
Definition: file.h:589
SAL_DLLPUBLIC oslFileError osl_getFilePos(oslFileHandle Handle, sal_uInt64 *pPos)
Retrieve the current position of the internal pointer of an open file.
VolumeDevice getDeviceHandle() const
Get the volume device handle.
Definition: file.hxx:613
~DirectoryItem()
Destructor.
Definition: file.hxx:1465
TimeValue aAccessTime
Last access time in nanoseconds since 1/1/1970.
Definition: file.h:401
RC getSize(sal_uInt64 &rSize)
Get the file size of an open file.
Definition: file.hxx:1136
sal_uInt32 getMaxNameLength() const
Determine the maximal length of a file name.
Definition: file.hxx:576
SAL_DLLPUBLIC oslFileError osl_setFileSize(oslFileHandle Handle, sal_uInt64 uSize)
Set the file size of an open file.
SAL_DLLPUBLIC oslFileError osl_getSystemPathFromFileURL(rtl_uString *pustrFileURL, rtl_uString **ppustrSystemPath)
Convert a file URL into a system dependent path.
RC open()
Open a directory for enumerating its contents.
Definition: file.hxx:1712
SAL_DLLPUBLIC oslFileError osl_openDirectory(rtl_uString *pustrDirectoryURL, oslDirectory *pDirectory)
Open a directory for enumerating its contents.
bool getCompactDiscFlag() const
Check the compact disc flag.
Definition: file.hxx:495
static RC copy(const ::rtl::OUString &ustrSourceFileURL, const ::rtl::OUString &ustrDestFileURL)
Copy a file to a new destination.
Definition: file.hxx:1309
sal_uInt64 getAttributes() const
Get the file attributes.
Definition: file.hxx:780
bool isCasePreservingFileSystem() const
Return whether the file system preserves the case of file and directory names or not.
Definition: file.hxx:636
bool isValid(sal_uInt32 nMask) const
Check if specified fields are valid.
Definition: file.hxx:462
void * oslDirectoryItem
Definition: file.h:139
SAL_DLLPUBLIC oslFileError osl_searchFileURL(rtl_uString *pustrFileName, rtl_uString *pustrSearchPath, rtl_uString **ppustrFileURL)
Searche a full qualified system path or a file URL.
SAL_DLLPUBLIC oslFileError osl_isEndOfFile(oslFileHandle Handle, sal_Bool *pIsEOF)
Test if the end of a file is reached.
~Directory()
Destructor.
Definition: file.hxx:1680
SAL_DLLPUBLIC oslFileError osl_openFile(rtl_uString *pustrFileURL, oslFileHandle *pHandle, sal_uInt32 uFlags)
Open a regular file.
void * oslVolumeDeviceHandle
Definition: file.h:462
sal_uInt32 uAttributes
Attributes of the volume (remote and/or removable)
Definition: file.h:574
rtl::OUString getURL() const
Obtain the URL.
Definition: file.hxx:1692
oslFileType eType
The type of the file (file, directory, volume).
Definition: file.h:393
#define osl_File_OpenFlag_Write
Definition: file.h:639
static RC getVolumeInfo(const ::rtl::OUString &ustrDirectoryURL, VolumeInfo &rInfo)
Retrieve information about a volume.
Definition: file.hxx:1844
bool isValid(sal_uInt32 nMask) const
Check if specified fields are valid.
Definition: file.hxx:713
sal_uInt64 uFreeSpace
Free space on the volume for the current process/user.
Definition: file.h:580
SAL_DLLPUBLIC oslFileError osl_setFileAttributes(rtl_uString *pustrFileURL, sal_uInt64 uAttributes)
Set file attributes.
#define SAL_INFO_IF(condition, area, stream)
Produce log entry from stream in the given log area if condition is true.
Definition: log.hxx:284
SAL_DLLPUBLIC oslFileError osl_setFilePos(oslFileHandle Handle, sal_uInt32 uHow, sal_Int64 uPos) SAL_WARN_UNUSED_RESULT
Set the internal position pointer of an open file.
RC close()
Close a directory.
Definition: file.hxx:1742
~FileStatus()
Destructor.
Definition: file.hxx:694
static RC getFileURLFromSystemPath(const ::rtl::OUString &ustrSystemPath,::rtl::OUString &ustrFileURL)
Convert a system dependent path into a file URL.
Definition: file.hxx:210
oslFileError
Definition: file.h:86
#define osl_FileStatus_Mask_FileName
Definition: file.h:372
SAL_DLLPUBLIC oslFileError osl_getCanonicalName(rtl_uString *pustrRequestedURL, rtl_uString **ppustrValidURL)
Determine a valid unused canonical name for a requested name.
static RC searchFileURL(const ::rtl::OUString &ustrFileName, const ::rtl::OUString &ustrSearchPath,::rtl::OUString &ustrFileURL)
Searche a full qualified system path or a file URL.
Definition: file.hxx:243
Definition: conditn.hxx:28
SAL_DLLPUBLIC void rtl_uString_release(rtl_uString *str) SAL_THROW_EXTERN_C()
Decrement the reference count of a string.
#define osl_FileStatus_Mask_ModifyTime
Definition: file.h:370
SAL_DLLPUBLIC oslFileError osl_acquireVolumeDeviceHandle(oslVolumeDeviceHandle Handle)
Acquire a volume device handle.
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:81
#define osl_Volume_Attribute_CompactDisc
Definition: file.h:540
SAL_DLLPUBLIC oslFileError osl_releaseDirectoryItem(oslDirectoryItem Item)
Decrease the refcount of a directory item handle.
static RC createPath(const ::rtl::OUString &aDirectoryUrl, DirectoryCreationObserver *aDirectoryCreationObserver=NULL)
Create a directory path.
Definition: file.hxx:1973
SAL_DLLPUBLIC oslFileError osl_closeDirectory(oslDirectory Directory)
Release a directory handle.
virtual ~DirectoryCreationObserver()
Definition: file.hxx:1621
#define osl_Volume_Attribute_Case_Is_Preserved
Definition: file.h:545
bool getRAMDiskFlag() const
Check the RAM disk flag.
Definition: file.hxx:528
RC
Definition: file.hxx:55
SAL_DLLPUBLIC sal_Bool osl_identicalDirectoryItem(oslDirectoryItem pItemA, oslDirectoryItem pItemB)
Determine if two directory items point the same underlying file.
TimeValue aModifyTime
Last modify time in nanoseconds since 1/1/1970.
Definition: file.h:403
bool is()
Check for validity of this instance.
Definition: file.hxx:1495
bool isOpen()
Query if directory is open.
Definition: file.hxx:1728
sal_uInt64 uUsedSpace
Used space on the volume for the current process/user.
Definition: file.h:578
Base class for observers of directory creation notifications.
Definition: file.hxx:1618
void * oslFileHandle
Definition: file.h:634
SAL_DLLPUBLIC oslFileError osl_readFile(oslFileHandle Handle, void *pBuffer, sal_uInt64 uBytesRequested, sal_uInt64 *pBytesRead)
Read a number of bytes from a file.
DirectoryItem()
Constructor.
Definition: file.hxx:1449
sal_uInt64 getUsedSpace() const
Determine the used space of a volume device.
Definition: file.hxx:564
SAL_DLLPUBLIC oslFileError osl_acquireDirectoryItem(oslDirectoryItem Item)
Increase the refcount of a directory item handle.
bool isCaseSensitiveFileSystem() const
Return whether the file system is case sensitive or case insensitive.
Definition: file.hxx:624
virtual void DirectoryCreated(const rtl::OUString &aDirectoryUrl)=0
This method will be called when a new directory has been created and needs to be overwritten by deriv...
The VolumeDevice class.
Definition: file.hxx:330
rtl_uString * ustrLinkTargetURL
Full URL of the target file if the file itself is a link.
Definition: file.h:415
SAL_DLLPUBLIC oslFileError osl_syncFile(oslFileHandle Handle)
Synchronize the memory representation of a file with that on the physical medium. ...
TimeValue aCreationTime
First creation time in nanoseconds since 1/1/1970.
Definition: file.h:398
The file class object provides access to file contents and attributes.
Definition: file.hxx:906
bool isLink() const
Is it a link?
Definition: file.hxx:769
SAL_DLLPUBLIC oslFileError osl_removeFile(rtl_uString *pustrFileURL)
Remove a regular file.
bool isDirectory() const
Is it a directory? This method returns True for both directories, and volumes.
Definition: file.hxx:741
SAL_DLLPUBLIC oslFileError osl_getDirectoryItem(rtl_uString *pustrFileURL, oslDirectoryItem *pItem)
Retrieve a single directory item.
rtl_uString * ustrFileName
Case correct name of the file.
Definition: file.h:408
#define osl_FileStatus_Mask_CreationTime
Definition: file.h:368
static RC setTime(const ::rtl::OUString &ustrFileURL, const TimeValue &rCreationTime, const TimeValue &rLastAccessTime, const TimeValue &rLastWriteTime)
Set the file time.
Definition: file.hxx:1418
sal_uInt32 uStructSize
Must be initialized with the size in bytes of the structure before passing it to any function...
Definition: file.h:570
inline::rtl::OUString getLinkTargetURL() const
Get the link target URL.
Definition: file.hxx:886
SAL_DLLPUBLIC oslFileError osl_createTempFile(rtl_uString *pustrDirectoryURL, oslFileHandle *pHandle, rtl_uString **ppustrTempFileURL)
Creates a temporary file in the directory provided by the caller or the directory returned by osl_get...
RC getFileStatus(FileStatus &rStatus)
Retrieve information about a single file or directory.
Definition: file.hxx:1577
~VolumeDevice()
Destructor.
Definition: file.hxx:359
static RC create(const ::rtl::OUString &ustrDirectoryURL, sal_uInt32 flags=osl_File_OpenFlag_Read|osl_File_OpenFlag_Write)
Create a directory.
Definition: file.hxx:1880
RC read(void *pBuffer, sal_uInt64 uBytesRequested, sal_uInt64 &rBytesRead)
Read a number of bytes from a file.
Definition: file.hxx:1173
bool getRemoveableFlag() const
Check the removeable flag.
Definition: file.hxx:484
#define osl_FileStatus_Mask_FileURL
Definition: file.h:373
~VolumeInfo()
Destructor.
Definition: file.hxx:448
TimeValue getModifyTime() const
Get the file modification time.
Definition: file.hxx:825
Type getFileType() const
Get the file type.
Definition: file.hxx:723
Definition: socket_decl.hxx:162
sal_uInt64 getTotalSpace() const
Determine the total space of a volume device.
Definition: file.hxx:540
RC sync() const
Synchronize the memory representation of a file with that on the physical medium. ...
Definition: file.hxx:1277
The directory class object provides a enumeration of DirectoryItems.
Definition: file.hxx:1649
inline::rtl::OUString getFileName() const
Get the file name.
Definition: file.hxx:853
static RC setAttributes(const ::rtl::OUString &ustrFileURL, sal_uInt64 uAttributes)
Set file attributes.
Definition: file.hxx:1391
SAL_DLLPUBLIC oslFileError osl_moveFile(rtl_uString *pustrSourceFileURL, rtl_uString *pustrDestFileURL)
Move a file or directory to a new destination or renames it.
SAL_DLLPUBLIC oslFileError osl_copyFile(rtl_uString *pustrSourceFileURL, rtl_uString *pustrDestFileURL)
Copy a file to a new destination.
SAL_DLLPUBLIC oslFileError osl_getAbsoluteFileURL(rtl_uString *pustrBaseDirectoryURL, rtl_uString *pustrRelativeFileURL, rtl_uString **ppustrAbsoluteFileURL)
Convert a path relative to a given directory into an full qualified file URL.
Structure containing information about volumes.
Definition: file.h:568