parameters: (folder)
docstring: Return folder/drive free space (in bytes)
docstring_summary: Return folder/drive free space (in bytes)
docstring_tokens: Return folder / drive free space ( in bytes )
function: def getFreeSpace(folder):
      """ Return folder/drive free space (in bytes)
      """
      if os.name == "posix":
          s = os.statvfs(folder)
          return s.f_bfree * s.f_bsize
      else:
          free_bytes = ctypes.c_ulonglong(0)
          ctypes.windll.kernel32.GetDiskFreeSpaceExW(ctypes.c_wchar_p(folder), None, None, ctypes.pointer(free_bytes))
          return free_bytes.value
function_tokens: def getFreeSpace ( folder ) : if os . name == "posix" : s = os . statvfs ( folder ) return s . f_bfree * s . f_bsize else : free_bytes = ctypes . c_ulonglong ( 0 ) ctypes . windll . kernel32 . GetDiskFreeSpaceExW ( ctypes . c_wchar_p ( folder ) , None , None , ctypes . pointer ( free_bytes ) ) return free_bytes . value