VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.6/tests/common@ 99553

Last change on this file since 99553 was 91612, checked in by vboxsync, 3 years ago

src/libs: Export libtpms-0.9.0, bugref:10078

File size: 184 bytes
Line 
1
2# Get the size of a file in bytes
3#
4# @1: filename
5function get_filesize()
6{
7 if [[ "$(uname -s)" =~ (Linux|CYGWIN_NT-) ]]; then
8 stat -c%s $1
9 else
10 # OpenBSD
11 stat -f%z $1
12 fi
13}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette