tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

prfileinfo.rst (1005B)


      1 PRFileInfo
      2 ==========
      3 
      4 File information structure used with :ref:`PR_GetFileInfo` and
      5 :ref:`PR_GetOpenFileInfo`.
      6 
      7 
      8 Syntax
      9 ~~~~~~
     10 
     11 .. code::
     12 
     13   #include <prio.h>
     14 
     15   struct PRFileInfo {
     16      PRFileType type;
     17      PRUint32 size;
     18      PRTime creationTime;
     19      PRTime modifyTime;
     20   };
     21 
     22   typedef struct PRFileInfo PRFileInfo;
     23 
     24 
     25 
     26 
     27 Fields
     28 ~~~~~~
     29 
     30 The structure has the following fields:
     31 
     32 ``type``
     33   Type of file. See :ref:`PRFileType`.
     34 ``size``
     35   Size, in bytes, of file's contents.
     36 ``creationTime``
     37   Creation time per definition of :ref:`PRTime`. See
     38   `prtime.h <https://searchfox.org/mozilla-central/source/nsprpub/pr/include/prtime.h>`__.
     39 ``modifyTime``
     40   Last modification time per definition of :ref:`PRTime`. See
     41   `prtime.h <https://searchfox.org/mozilla-central/source/nsprpub/pr/include/prtime.h>`__.
     42 
     43 
     44 Description
     45 -----------
     46 
     47 The :ref:`PRFileInfo` structure provides information about a file, a
     48 directory, or some other kind of file system object, as specified by the
     49 ``type`` field.