How to: Get Filesize / Free Space

  • Thread starter Thread starter Boris Nienke
  • Start date Start date
B

Boris Nienke

Hi,

i would like to know if there's enough Space on the destination ("/" or
"/SD-Card", ....) to copy a file.

Now i don't know how to:
- Get the size of a file
- Get the free space off the destination directory

thank you

Boris
 
File size: Fileinfo.Length
Free space - PInvoke GetDiskFreeSpaceEx
To find a memory card use FindFirstFlashCard/FindNextFlashCard
 
Back
Top