assert_fs icon indicating copy to clipboard operation
assert_fs copied to clipboard

Assert metadata of a file

Open mssun opened this issue 7 years ago • 6 comments

Can I assert metadata of a file, like permissions, file type, access time, etc?

mssun avatar Jul 31 '18 02:07 mssun

Also, it would be nice to have a API to crate/touch a file with specific permission (mode).

mssun avatar Jul 31 '18 03:07 mssun

We support file type assertions. There aren't permission or access time assertions or fixture support yet. I wasn't sure what all types people would need.

Seems reasonable to add these but I will note, these will probably not be a priority for me to implement.

epage avatar Jul 31 '18 12:07 epage

Ok, for me, I try to use it to test the chmod util.

mssun avatar Jul 31 '18 12:07 mssun

Dependent on #73

epage avatar Jan 27 '19 04:01 epage

Hi, does this feature depends on anything? I can't find any #73.

frondeus avatar Jul 17 '20 09:07 frondeus

Sorry about that, the fun of forgetting which repo I'm in. I meant https://github.com/assert-rs/predicates-rs/issues/73

epage avatar Jul 17 '20 13:07 epage