|
|
{ | { |
#if ENABLE_UNIX_SPECIFIC | #if ENABLE_UNIX_SPECIFIC |
// get info about the device the file will be saved on | // get info about the device the file will be saved on |
Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs(); |
Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs(); |
Mono.Unix.Syscall.statvfs(Path.GetDirectoryName(fn), out stat); |
Mono.Unix.Native.Syscall.statvfs(Path.GetDirectoryName(fn), out stat); |
| |
long freeSpace=(long)(stat.f_bavail*stat.f_bsize); | long freeSpace=(long)(stat.f_bavail*stat.f_bsize); |
| |
|
|
// get info about the device the file will be saved on | // get info about the device the file will be saved on |
FileInfo fi=new FileInfo(bb.Filename); | FileInfo fi=new FileInfo(bb.Filename); |
| |
Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs(); |
Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs(); |
Mono.Unix.Syscall.statvfs(bb.Filename, out stat); |
Mono.Unix.Native.Syscall.statvfs(bb.Filename, out stat); |
| |
long freeSpace=(long)(stat.f_bavail*stat.f_bsize) + fi.Length; | long freeSpace=(long)(stat.f_bavail*stat.f_bsize) + fi.Length; |
| |