lib/specinfra/command/openbsd/base/file.rb in specinfra-2.36.5 vs lib/specinfra/command/openbsd/base/file.rb in specinfra-2.36.6
- old
+ new
@@ -33,7 +33,15 @@
end
def get_mode(file)
"stat -f%Lp #{escape(file)}"
end
+
+ def get_mtime(file)
+ "stat -f %m #{escape(file)}"
+ end
+
+ def get_size(file)
+ "stat -f %z #{escape(file)}"
+ end
end
end