24 #ifndef INCLUDED_OSL_FILE_HXX 25 #define INCLUDED_OSL_FILE_HXX 40 namespace rtl {
class ByteSequence; }
172 return static_cast< RC >(
osl_getAbsoluteFileURL( ustrBaseDirectoryURL.pData, ustrRelativeFileURL.pData, &ustrAbsoluteFileURL.pData ) );
242 return static_cast< RC >(
osl_searchFileURL( ustrFileName.pData, ustrSearchPath.pData, &ustrFileURL.pData ) );
311 rtl_uString* pustr_dir_url = pustrDirectoryURL ? pustrDirectoryURL->pData : NULL;
312 rtl_uString** ppustr_tmp_file_url = pustrTempFileURL ? &pustrTempFileURL->pData : NULL;
345 _aHandle = rDevice._aHandle;
375 _aHandle = newHandle;
674 memset(&_aStatus, 0,
sizeof(_aStatus));
713 "no FileStatus Type determined");
770 "no FileStatus Attributes determined");
785 "no FileStatus CreationTime determined");
800 "no FileStatus AccessTime determined");
815 "no FileStatus ModifyTime determined");
829 "no FileStatus FileSize determined");
843 "no FileStatus FileName determined");
860 "no FileStatus FileURL determined");
876 "no FileStatus LinkTargetURL determined");
914 File( const ::rtl::OUString& ustrFileURL ): _pData( NULL ), _aPath( ustrFileURL ) {}
977 return static_cast< RC >(
osl_openFile( _aPath.pData, &_pData, uFlags ) );
1003 return static_cast< RC >( Error );
1150 RC read(
void *pBuffer, sal_uInt64 uBytesRequested, sal_uInt64& rBytesRead )
1152 return static_cast< RC >(
osl_readFile( _pData, pBuffer, uBytesRequested, &rBytesRead ) );
1188 RC write(
const void *pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64& rBytesWritten)
1190 return static_cast< RC >(
osl_writeFile( _pData, pBuffer, uBytesToWrite, &rBytesWritten ) );
1219 return static_cast< RC >(
osl_readLine( _pData, reinterpret_cast<sal_Sequence**>(&aSeq) ) );
1243 OSL_PRECOND(_pData,
"File::sync(): File not open");
1272 static RC copy( const ::rtl::OUString& ustrSourceFileURL, const ::rtl::OUString& ustrDestFileURL )
1274 return static_cast< RC >(
osl_copyFile( ustrSourceFileURL.pData, ustrDestFileURL.pData ) );
1300 static RC move( const ::rtl::OUString& ustrSourceFileURL, const ::rtl::OUString& ustrDestFileURL )
1302 return static_cast< RC >(
osl_moveFile( ustrSourceFileURL.pData, ustrDestFileURL.pData ) );
1333 const ::rtl::OUString& ustrDestFileURL)
1335 return static_cast<RC>(
osl_replaceFile(ustrSourceFileURL.pData, ustrDestFileURL.pData));
1364 static RC remove( const ::rtl::OUString& ustrFileURL )
1411 const ::rtl::OUString& ustrFileURL,
1420 &rLastWriteTime ) );
1473 _pData = rItem._pData;
1489 return _pData != NULL;
1530 rItem._pData = NULL;
1569 return static_cast< RC >(
osl_getFileStatus( _pData, &rStatus._aStatus, rStatus._nMask ) );
1661 Directory( const ::rtl::OUString& strPath ): _pData( NULL ), _aPath( strPath )
1737 return static_cast< RC >( Error );
1790 rItem._pData = NULL;
1862 const ::rtl::OUString& ustrDirectoryURL,
1865 return static_cast< RC >(
1895 static RC remove( const ::rtl::OUString& ustrDirectoryURL )
1937 const ::rtl::OUString& aDirectoryUrl,
1941 aDirectoryUrl.pData,
1943 aDirectoryCreationObserver));
1949 #endif // INCLUDED_OSL_FILE_HXX VolumeInfo(sal_uInt32 nMask)
Constructor.
Definition: file.hxx:429
TimeValue aCreationTime
First creation time in nanoseconds since 1/1/1970.
Definition: file.h:393
SAL_DLLPUBLIC oslFileError osl_releaseDirectoryItem(oslDirectoryItem Item)
Decrease the refcount of a directory item handle.
#define osl_FileStatus_Mask_ModifyTime
Definition: file.h:368
static RC getTempDirURL(::rtl::OUString &ustrTempDirURL)
Retrieves the file URL of the system's temporary directory path.
Definition: file.hxx:254
SAL_DLLPUBLIC oslFileError osl_getFilePos(oslFileHandle Handle, sal_uInt64 *pPos)
Retrieve the current position of the internal pointer of an open file.
rtl::OUString getURL() const
Obtain the URL.
Definition: file.hxx:931
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
SAL_DLLPUBLIC sal_Bool osl_identicalDirectoryItem(oslDirectoryItem pItemA, oslDirectoryItem pItemB)
Determine if two directory items point the same underlying file.
resource busy
Definition: file.hxx:73
#define osl_Volume_Attribute_FloppyDisk
Definition: file.h:533
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...
function call was interrupted
Definition: file.hxx:62
FileStatus(sal_uInt32 nMask)
Constructor.
Definition: file.hxx:671
RC getNextItem(DirectoryItem &rItem, sal_uInt32 nHint=0)
Retrieve the next item of a previously opened directory.
Definition: file.hxx:1785
rtl_uString * ustrFileName
Case correct name of the file.
Definition: file.h:403
file exists where should only be created
Definition: file.hxx:74
device not ready
Definition: file.hxx:102
SAL_DLLPUBLIC oslFileError osl_syncFile(oslFileHandle Handle)
Synchronize the memory representation of a file with that on the physical medium. ...
struct _oslVolumeInfo oslVolumeInfo
Structure containing information about volumes.
remote resource is not directly available
Definition: file.hxx:99
no such file or directory
Definition: file.hxx:60
SAL_DLLPUBLIC oslFileError osl_createDirectoryPath(rtl_uString *aDirectoryUrl, oslDirectoryCreationCallbackFunc aDirectoryCreationCallbackFunc, void *pData)
Create a directory path.
Type
Definition: file.hxx:655
Directory(const ::rtl::OUString &strPath)
Constructor.
Definition: file.hxx:1661
bad file descriptor
Definition: file.hxx:67
#define osl_Volume_Attribute_Case_Sensitive
Definition: file.h:536
RC getFileStatus(FileStatus &rStatus)
Retrieve information about a single file or directory.
Definition: file.hxx:1567
bool is()
Check for validity of this instance.
Definition: file.hxx:1487
file too large
Definition: file.hxx:83
improper link across file systems detected
Definition: file.hxx:75
sal_uInt64 getFileSize() const
Get the size of the file.
Definition: file.hxx:825
Type getFileType() const
Get the file type.
Definition: file.hxx:709
~VolumeInfo()
Definition: file.hxx:437
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.
RC readLine(::rtl::ByteSequence &aSeq)
Read a line from a file.
Definition: file.hxx:1217
RC open(sal_uInt32 uFlags)
Open a regular file.
Definition: file.hxx:975
oslFileError
Definition: file.h:89
range error (mathematical error)
Definition: file.hxx:90
Definition: condition.hxx:31
RC write(const void *pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64 &rBytesWritten)
Write a number of bytes to a file.
Definition: file.hxx:1188
sal_uInt32 uMaxNameLength
Maximum length of file name of a single item.
Definition: file.h:579
rtl_uString * ustrFileURL
Full URL of the file.
Definition: file.h:406
#define osl_FileStatus_Mask_Type
Definition: file.h:364
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:1300
file is a directory, invalid operation
Definition: file.hxx:78
TimeValue getCreationTime() const
Get the creation time of this file.
Definition: file.hxx:781
~VolumeDevice()
Destructor.
Definition: file.hxx:353
oslFileType eType
The type of the file (file, directory, volume).
Definition: file.h:388
SAL_DLLPUBLIC oslFileError osl_acquireVolumeDeviceHandle(oslVolumeDeviceHandle Handle)
Acquire a volume device handle.
oslVolumeDeviceHandle * pDeviceHandle
Pointer to handle the receives underlying device.
Definition: file.h:588
SAL_DLLPUBLIC oslFileError osl_getDirectoryItem(rtl_uString *pustrFileURL, oslDirectoryItem *pItem)
Retrieve a single directory item.
~DirectoryItem()
Destructor.
Definition: file.hxx:1457
#define osl_FileStatus_Mask_AccessTime
Definition: file.h:367
SAL_DLLPUBLIC oslFileError osl_getSystemPathFromFileURL(rtl_uString *pustrFileURL, rtl_uString **ppustrSystemPath)
Convert a file URL into a system dependent path.
static RC create(const ::rtl::OUString &ustrDirectoryURL, sal_uInt32 flags=osl_File_OpenFlag_Read|osl_File_OpenFlag_Write)
Create a directory.
Definition: file.hxx:1861
SAL_DLLPUBLIC oslFileError osl_searchFileURL(rtl_uString *pustrFileName, rtl_uString *pustrSearchPath, rtl_uString **ppustrFileURL)
Search a full qualified system path or a file URL.
#define osl_FileStatus_Mask_Attributes
Definition: file.h:365
rtl::OUString getURL() const
Obtain the URL.
Definition: file.hxx:1680
link has been severed
Definition: file.hxx:98
Main goals and usage hints.
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:378
RC close()
Close an open file.
Definition: file.hxx:993
sal_uInt64 getUsedSpace() const
Determine the used space of a volume device.
Definition: file.hxx:550
TimeValue getAccessTime() const
Get the file access time.
Definition: file.hxx:796
TimeValue aAccessTime
Last access time in nanoseconds since 1/1/1970.
Definition: file.h:396
VolumeDevice(const VolumeDevice &rDevice)
Copy constructor.
Definition: file.hxx:343
#define osl_File_OpenFlag_Write
Definition: file.h:635
SAL_DLLPUBLIC oslFileError osl_openFile(rtl_uString *pustrFileURL, oslFileHandle *pHandle, sal_uInt32 uFlags)
Open a regular file.
SAL_DLLPUBLIC oslFileError osl_removeFile(rtl_uString *pustrFileURL)
Remove a regular file.
#define osl_Volume_Attribute_Remote
Definition: file.h:529
SAL_DLLPUBLIC oslFileError osl_getFileStatus(oslDirectoryItem Item, oslFileStatus *pStatus, sal_uInt32 uFieldMask)
Retrieve information about a single file or directory.
sal_uInt64 getAttributes() const
Get the file attributes.
Definition: file.hxx:766
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...
The VolumeInfo class.
Definition: file.hxx:406
bool getRemoveableFlag() const
Check the removable flag.
Definition: file.hxx:470
invalid argument to library function
Definition: file.hxx:79
sal_uInt64 uFreeSpace
Free space on the volume for the current process/user.
Definition: file.h:577
void * oslFileHandle
Definition: file.h:630
SAL_DLLPUBLIC oslFileError osl_writeFile(oslFileHandle Handle, const void *pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64 *pBytesWritten)
Write a number of bytes to a file.
SAL_DLLPUBLIC oslFileError osl_readLine(oslFileHandle Handle, sal_Sequence **ppSequence)
Read a line from a file.
static RC replace(const ::rtl::OUString &ustrSourceFileURL, const ::rtl::OUString &ustrDestFileURL)
Move a file to a new destination or rename it, taking old file's identity (if exists).
Definition: file.hxx:1332
SAL_DLLPUBLIC oslFileError osl_isEndOfFile(oslFileHandle Handle, sal_Bool *pIsEOF)
Test if the end of a file is reached.
Provides simple diagnostic support.
SAL_DLLPUBLIC oslFileError osl_getVolumeDeviceMountPath(oslVolumeDeviceHandle Handle, rtl_uString **ppustrDirectoryURL)
Get the full qualified URL where a device is mounted to.
Structure containing information about volumes.
Definition: file.h:564
SAL_DLLPUBLIC oslFileError osl_getVolumeInformation(rtl_uString *pustrDirectoryURL, oslVolumeInfo *pInfo, sal_uInt32 uFieldMask)
Retrieve information about a volume.
function not implemented
Definition: file.hxx:94
bool isValid(sal_uInt32 nMask) const
Check if specified fields are valid.
Definition: file.hxx:699
SAL_DLLPUBLIC oslFileError osl_getFileURLFromSystemPath(rtl_uString *pustrSystemPath, rtl_uString **ppustrFileURL)
Convert a system dependent path into a file URL.
static RC getCanonicalName(const ::rtl::OUString &ustrRequestedURL, ::rtl::OUString &ustrValidURL)
Determine a valid unused canonical name for a requested name.
Definition: file.hxx:131
SAL_DLLPUBLIC oslFileError osl_getTempDirURL(rtl_uString **pustrTempDirURL)
Retrieves the file URL of the system's temporary directory path.
rtl_uString * ustrLinkTargetURL
Full URL of the target file if the file itself is a link.
Definition: file.h:410
SAL_DLLPUBLIC oslFileError osl_openDirectory(rtl_uString *pustrDirectoryURL, oslDirectory *pDirectory)
Open a directory for enumerating its contents.
TimeValue getModifyTime() const
Get the file modification time.
Definition: file.hxx:811
bool isRegular() const
Is it a regular file?
Definition: file.hxx:742
static RC searchFileURL(const ::rtl::OUString &ustrFileName, const ::rtl::OUString &ustrSearchPath, ::rtl::OUString &ustrFileURL)
Search a full qualified system path or a file URL.
Definition: file.hxx:240
I/O error occurred.
Definition: file.hxx:63
SAL_WARN_UNUSED_RESULT SAL_DLLPUBLIC oslFileError osl_setFilePos(oslFileHandle Handle, sal_uInt32 uHow, sal_Int64 uPos)
Set the internal position pointer of an open file.
virtual ~DirectoryCreationObserver()
Definition: file.hxx:1609
#define osl_Volume_Attribute_CompactDisc
Definition: file.h:530
The file class object provides access to file contents and attributes.
Definition: file.hxx:891
sal_uInt64 uUsedSpace
Used space on the volume for the current process/user.
Definition: file.h:575
::rtl::OUString getFileURL() const
Get the URL of the file.
Definition: file.hxx:856
sal_uInt32 uValidFields
Determines which members of the structure contain valid data.
Definition: file.h:569
static RC getSystemPathFromFileURL(const ::rtl::OUString &ustrFileURL, ::rtl::OUString &ustrSystemPath)
Convert a file URL into a system dependent path.
Definition: file.hxx:189
C++ class representing a SAL byte sequence.
Definition: byteseq.h:169
no space left on device, write failed
Definition: file.hxx:84
void * oslDirectory
Definition: file.h:143
too many links to file
Definition: file.hxx:87
unsigned char sal_Bool
Definition: types.h:38
domain error (mathematical error)
Definition: file.hxx:89
sal_uInt32 uStructSize
Must be initialized with the size in bytes of the structure before passing it to any function...
Definition: file.h:567
bool isValid(sal_uInt32 nMask) const
Check if specified fields are valid.
Definition: file.hxx:450
SAL_DLLPUBLIC void rtl_uString_release(rtl_uString *str) SAL_THROW_EXTERN_C() SAL_HOT
Decrement the reference count of a string.
SAL_DLLPUBLIC oslFileError osl_copyFile(rtl_uString *pustrSourceFileURL, rtl_uString *pustrDestFileURL)
Copy a file to a new destination.
Definition: socket_decl.hxx:197
inappropriate I/O control operation
Definition: file.hxx:82
unmapped error: always last entry in enum!
Definition: file.hxx:103
void onDirectoryCreated(void *pData, rtl_uString *aDirectoryUrl)
Definition: file.hxx:1626
file permissions do not allow operation
Definition: file.hxx:71
no process matches the PID
Definition: file.hxx:61
void * oslDirectoryItem
Definition: file.h:144
RC read(void *pBuffer, sal_uInt64 uBytesRequested, sal_uInt64 &rBytesRead)
Read a number of bytes from a file.
Definition: file.hxx:1150
#define osl_FileStatus_Mask_CreationTime
Definition: file.h:366
#define osl_Volume_Attribute_RAMDisk
Definition: file.h:532
broken pipe; no process reading from other end of pipe
Definition: file.hxx:88
sal_uInt64 getTotalSpace() const
Determine the total space of a volume device.
Definition: file.hxx:526
invalid seek operation (such as on pipe)
Definition: file.hxx:85
VolumeDevice()
Constructor.
Definition: file.hxx:333
DirectoryItem & operator=(const DirectoryItem &rItem)
Assignment operator.
Definition: file.hxx:1466
no memory available
Definition: file.hxx:70
on success
Definition: file.hxx:58
rtl_uString * ustrFileSystemName
Points to a string that receives the name of the file system type.
Definition: file.h:585
Definition: bootstrap.hxx:33
~FileStatus()
Destructor.
Definition: file.hxx:680
bool isDirectory() const
Is it a directory? This method returns True for both directories, and volumes.
Definition: file.hxx:727
The VolumeDevice class.
Definition: file.hxx:324
bool getRAMDiskFlag() const
Check the RAM disk flag.
Definition: file.hxx:514
static RC setTime(const ::rtl::OUString &ustrFileURL, const TimeValue &rCreationTime, const TimeValue &rLastAccessTime, const TimeValue &rLastWriteTime)
Set the file time.
Definition: file.hxx:1410
SAL_DLLPUBLIC oslFileError osl_setFileSize(oslFileHandle Handle, sal_uInt64 uSize)
Set the file size of an open file.
Structure containing information about files and directories.
Definition: file.h:382
SAL_DLLPUBLIC oslFileError osl_releaseVolumeDeviceHandle(oslVolumeDeviceHandle Handle)
Release a volume device handle.
sal_uInt32 uMaxPathLength
Maximum length of a full qualified path in system notation.
Definition: file.h:581
sal_uInt32 uAttributes
Attributes of the volume (remote and/or removable)
Definition: file.h:571
RC isEndOfFile(sal_Bool *pIsEOF)
Test if the end of a file is reached.
Definition: file.hxx:1068
#define osl_File_OpenFlag_Read
Definition: file.h:634
too many levels of symbolic links found during name lookup
Definition: file.hxx:96
SAL_DLLPUBLIC oslFileError osl_readFile(oslFileHandle Handle, void *pBuffer, sal_uInt64 uBytesRequested, sal_uInt64 *pBytesRead)
Read a number of bytes from a file.
sal_uInt64 getFreeSpace() const
Determine the free space of a volume device.
Definition: file.hxx:538
RC getSize(sal_uInt64 &rSize)
Get the file size of an open file.
Definition: file.hxx:1114
sal_uInt32 getMaxNameLength() const
Determine the maximal length of a file name.
Definition: file.hxx:562
RC open()
Open a directory for enumerating its contents.
Definition: file.hxx:1699
sal_uInt32 uValidFields
Determines which members of the structure contain valid data.
Definition: file.h:386
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:306
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:170
filename too long
Definition: file.hxx:92
sal_uInt32 getMaxPathLength() const
Determine the maximal length of a path name.
Definition: file.hxx:574
SAL_DLLPUBLIC oslFileError osl_acquireDirectoryItem(oslDirectoryItem Item)
Increase the refcount of a directory item handle.
SAL_DLLPUBLIC oslFileError osl_getCanonicalName(rtl_uString *pustrRequestedURL, rtl_uString **ppustrValidURL)
Determine a valid unused canonical name for a requested name.
VolumeDevice getDeviceHandle() const
Get the volume device handle.
Definition: file.hxx:599
process has too many distinct files open
Definition: file.hxx:81
~Directory()
Destructor.
Definition: file.hxx:1668
SAL_WARN_UNUSED_RESULT RC setPos(sal_uInt32 uHow, sal_Int64 uPos)
Set the internal position pointer of an open file.
Definition: file.hxx:1022
no such device or address
Definition: file.hxx:64
VolumeDevice & operator=(const VolumeDevice &rDevice)
Assignment operator.
Definition: file.hxx:365
sal_uInt64 uFileSize
Size in bytes of the file.
Definition: file.h:400
Base class for observers of directory creation notifications.
Definition: file.hxx:1606
value too large for defined data type
Definition: file.hxx:101
bool isOpen()
Query if directory is open.
Definition: file.hxx:1714
rtl::OUString getMountPath()
Get the full qualified URL where a device is mounted to.
Definition: file.hxx:385
SAL_DLLPUBLIC oslFileError osl_setFileTime(rtl_uString *pustrFileURL, const TimeValue *aCreationTime, const TimeValue *aLastAccessTime, const TimeValue *aLastWriteTime)
Set the file time.
static RC copy(const ::rtl::OUString &ustrSourceFileURL, const ::rtl::OUString &ustrDestFileURL)
Copy a file to a new destination.
Definition: file.hxx:1272
RC reset()
Resets the directory item enumeration to the beginning.
Definition: file.hxx:1757
RC close()
Close a directory.
Definition: file.hxx:1727
SAL_DLLPUBLIC oslFileError osl_closeDirectory(oslDirectory Directory)
Release a directory handle.
bool isCaseSensitiveFileSystem() const
Return whether the file system is case sensitive or case insensitive.
Definition: file.hxx:610
void * oslVolumeDeviceHandle
Definition: file.h:454
Time since Jan-01-1970.
Definition: time.h:76
The FileStatus class.
Definition: file.hxx:638
RC sync() const
Synchronize the memory representation of a file with that on the physical medium. ...
Definition: file.hxx:1241
RC
Definition: file.hxx:57
RC setSize(sal_uInt64 uSize)
Set the file size of an open file.
Definition: file.hxx:1090
Base class for all File System specific objects.
Definition: file.hxx:53
#define SAL_WARN_UNUSED_RESULT
Use this as markup for functions and methods whose return value must be checked.
Definition: types.h:284
#define SAL_INFO_IF(condition, area, stream)
Produce log entry from stream in the given log area if condition is true.
Definition: log.hxx:353
SAL_DLLPUBLIC oslFileError osl_setFileAttributes(rtl_uString *pustrFileURL, sal_uInt64 uAttributes)
Set file attributes.
static RC createPath(const ::rtl::OUString &aDirectoryUrl, DirectoryCreationObserver *aDirectoryCreationObserver=NULL)
Create a directory path.
Definition: file.hxx:1936
SAL_DLLPUBLIC oslFileError osl_closeFile(oslFileHandle Handle)
Close an open file.
argument list too long
Definition: file.hxx:65
::rtl::OUString getLinkTargetURL() const
Get the link target URL.
Definition: file.hxx:872
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_getNextDirectoryItem(oslDirectory Directory, oslDirectoryItem *pItem, sal_uInt32 uHint)
Retrieve the next item of a previously opened directory.
sal_uInt64 uAttributes
File attributes.
Definition: file.h:390
#define osl_Volume_Attribute_Removeable
Definition: file.h:528
SAL_DLLPUBLIC oslFileError osl_createDirectoryWithFlags(rtl_uString *url, sal_uInt32 flags)
Create a directory, passing flags.
invalid or incomplete byte sequence of multibyte char found
Definition: file.hxx:97
socket operation timed out
Definition: file.hxx:104
there are no child processes
Definition: file.hxx:68
bool isLink() const
Is it a link?
Definition: file.hxx:755
illegal modification to read-only filesystem
Definition: file.hxx:86
The directory item class object provides access to file status information.
Definition: file.hxx:1432
no locks available
Definition: file.hxx:93
SAL_DLLPUBLIC oslFileError osl_replaceFile(rtl_uString *pustrSourceFileURL, rtl_uString *pustrDestFileURL)
Move a file to a new destination or rename it, taking old file's identity (if exists).
#define osl_FileStatus_Mask_FileSize
Definition: file.h:369
RC getPos(sal_uInt64 &uPos)
Retrieve the current position of the internal pointer of an open file.
Definition: file.hxx:1042
operation not permitted
Definition: file.hxx:59
#define OSL_PRECOND(c, m)
Check the precondition of functions.
Definition: diagnose.h:112
resource temp unavailable, try again later
Definition: file.hxx:69
~File()
Destructor.
Definition: file.hxx:919
bool getRemoteFlag() const
Check the remote flag.
Definition: file.hxx:460
#define osl_FileStatus_Mask_FileName
Definition: file.h:370
bad address; an invalid pointer detected
Definition: file.hxx:72
DirectoryItem(const DirectoryItem &rItem)
Copy constructor.
Definition: file.hxx:1448
bool getCompactDiscFlag() const
Check the compact disc flag.
Definition: file.hxx:481
bool getFixedDiskFlag() const
Check the fixed disk flag.
Definition: file.hxx:503
#define osl_FileStatus_Mask_FileURL
Definition: file.h:371
static RC setAttributes(const ::rtl::OUString &ustrFileURL, sal_uInt64 uAttributes)
Set file attributes.
Definition: file.hxx:1384
too many distinct file openings
Definition: file.hxx:80
File(const ::rtl::OUString &ustrFileURL)
Constructor.
Definition: file.hxx:914
#define osl_Volume_Attribute_FixedDisk
Definition: file.h:531
DirectoryItem()
Constructor.
Definition: file.hxx:1441
deadlock avoided
Definition: file.hxx:91
SAL_DLLPUBLIC oslFileError osl_getFileSize(oslFileHandle Handle, sal_uInt64 *pSize)
Get the file size of an open file.
file isn't a directory where one is needed
Definition: file.hxx:77
bool isIdenticalTo(const DirectoryItem &pOther)
Determine if a directory item point the same underlying file.
Definition: file.hxx:1587
sal_uInt64 uTotalSpace
Total available space on the volume for the current process/user.
Definition: file.h:573
TimeValue aModifyTime
Last modify time in nanoseconds since 1/1/1970.
Definition: file.h:398
The directory class object provides an enumeration of DirectoryItems.
Definition: file.hxx:1637
bool isCasePreservingFileSystem() const
Return whether the file system preserves the case of file and directory names or not.
Definition: file.hxx:622
bool getFloppyDiskFlag() const
Check the floppy disc flag.
Definition: file.hxx:492
static RC getVolumeInfo(const ::rtl::OUString &ustrDirectoryURL, VolumeInfo &rInfo)
Retrieve information about a volume.
Definition: file.hxx:1826
#define osl_Volume_Attribute_Case_Is_Preserved
Definition: file.h:535
::rtl::OUString getFileName() const
Get the file name.
Definition: file.hxx:839
::rtl::OUString getFileSystemName() const
Determine the name of the volume device's File System.
Definition: file.hxx:586
wrong device type specified
Definition: file.hxx:76
SAL_DLLPUBLIC oslFileError osl_removeDirectory(rtl_uString *pustrDirectoryURL)
Remove an empty directory.
sal_uInt32 uStructSize
Must be initialized with the size in bytes of the structure before passing it to any function...
Definition: file.h:384
directory not empty
Definition: file.hxx:95
file quote system is confused as there are too many users
Definition: file.hxx:100
invalid executable file format
Definition: file.hxx:66
#define osl_FileStatus_Mask_LinkTargetURL
Definition: file.h:372
static RC getFileURLFromSystemPath(const ::rtl::OUString &ustrSystemPath, ::rtl::OUString &ustrFileURL)
Convert a system dependent path into a file URL.
Definition: file.hxx:208