VirtualBox

Changeset 24189 in vbox


Ignore:
Timestamp:
Oct 30, 2009 1:41:41 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: Added RTFileQuerySize.

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/file.h

    r23974 r24189  
    6666 */
    6767RTDECL(bool) RTFileExists(const char *pszPath);
     68
     69/**
     70 * Queries the size of a file, given the path to it.
     71 *
     72 * Symbolic links will be resolved.
     73 *
     74 * @returns IPRT status code.
     75 * @param   pszPath         The path to the file.
     76 * @param   pcbFile         Where to return the file size (bytes).
     77 *
     78 * @sa      RTFileGetSize, RTPathQueryInfoEx.
     79 */
     80RTDECL(int) RTFileQuerySize(const char *pszPath, uint64_t *pcbFile);
    6881
    6982
  • trunk/src/VBox/Runtime/Makefile.kmk

    r23852 r24189  
    314314        generic/RTDirCreateTemp-generic.cpp \
    315315        generic/RTFileCopy-generic.cpp \
     316        generic/RTFileQuerySize-generic.cpp \
    316317        generic/RTFileReadAll-generic.cpp \
    317318        generic/RTFileReadAllEx-generic.cpp \
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette