Function gnunet_sys::GNUNET_DISK_file_size[][src]

pub unsafe extern "C" fn GNUNET_DISK_file_size(
    filename: *const c_char,
    size: *mut u64,
    include_symbolic_links: c_int,
    single_file_mode: c_int
) -> GNUNET_GenericReturnValue

Get the size of the file (or directory) of the given file (in bytes).

@param filename name of the file or directory @param size set to the size of the file (or, in the case of directories, the sum of all sizes of files in the directory) @param include_symbolic_links should symbolic links be included? @param single_file_mode #GNUNET_YES to only get size of one file and return #GNUNET_SYSERR for directories. @return #GNUNET_SYSERR on error, #GNUNET_OK on success