Top | ![]() |
![]() |
![]() |
![]() |
#define | FM_DEEP_COUNT_JOB_TYPE |
struct | FmDeepCountJob |
struct | FmDeepCountJobClass |
enum | FmDeepCountJobFlags |
include
: libfm/fm.h
The FmDeepCountJob can be used to recursively gather information about some files and directories content before copy or move. It counts total size of all given files and directories, and size on disk for them. If flags for the job include FM_DC_JOB_PREPARE_MOVE then also count of files to move between volumes will be counted as well.
FmDeepCountJob * fm_deep_count_job_new (FmPathList *paths
,FmDeepCountJobFlags flags
);
Creates a new FmDeepCountJob which can be ran via FmJob API.
Since: 0.1.0
void fm_deep_count_job_set_dest (FmDeepCountJob *dc
,dev_t dev
,const char *fs_id
);
Sets destination for the job dc
that will be used when the job is
ran with any of flags FM_DC_JOB_SAME_FS or FM_DC_JOB_PREPARE_MOVE.
If dev
is 0 (and fs_id
is NULL) then destination device is non on
native filesystem.
dc |
a job to set the destination |
|
dev |
UNIX device ID |
|
fs_id |
filesystem id in gio format. |
[allow-none] |
Since: 0.1.0
struct FmDeepCountJob { FmJob parent; FmPathList* paths; FmDeepCountJobFlags flags; goffset total_size; goffset total_ondisk_size; guint count; };
FmJob |
the parent object |
|
FmPathList * |
list of paths to count |
|
FmDeepCountJobFlags |
flags for counting |
|
counted total file size |
||
counted total file size on disk |
||
number of files to be moved between devices |