Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
mm::core::UserCacheFile Struct Reference

One file in the user cache, as reported by UserCache::list. More...

#include <user_cache.h>

Collaboration diagram for mm::core::UserCacheFile:
[legend]

Public Attributes

std::string path
 
uint64_t size = 0
 File size in bytes.
 
int64_t modifiedMs = 0
 
bool deletable = true
 

Detailed Description

One file in the user cache, as reported by UserCache::list.

Member Data Documentation

◆ deletable

bool mm::core::UserCacheFile::deletable = true

Whether remove will accept this path. False for a file this process holds open — see UserCache::retain. A client uses it to not offer an action that would be refused.

◆ modifiedMs

int64_t mm::core::UserCacheFile::modifiedMs = 0

Last-write time in milliseconds since the Unix epoch.

◆ path

std::string mm::core::UserCacheFile::path

Path relative to the cache root, always with / separators (so a Windows listing reads the same as a Linux one and round-trips straight back into read / write / remove).

◆ size

uint64_t mm::core::UserCacheFile::size = 0

File size in bytes.


The documentation for this struct was generated from the following file: