Rev 9685 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9685 | Rev 9689 | ||
---|---|---|---|
Line 254... | Line 254... | ||
254 | BDVK bdvk; |
254 | BDVK bdvk; |
255 | if (GetFileInfo(_path, #bdvk)!=0) return 0; |
255 | if (GetFileInfo(_path, #bdvk)!=0) return 0; |
256 | else return bdvk.sizelo; |
256 | else return bdvk.sizelo; |
257 | } |
257 | } |
Line 258... | Line -... | ||
258 | - | ||
259 | /* |
258 | |
260 | // This implementation of dir_exists() is faster than |
259 | /* This implementation of dir_exists() is faster than |
261 | // previous but here virtual folders like |
260 | previous but here virtual folders like |
262 | // '/' and '/tmp' are not recognised as FOLDERS |
261 | '/' and '/tmp' are not recognised as FOLDERS |
263 | // by GetFileInfo() => BDVK.isfolder attribute :( |
- | |
264 | 262 | by GetFileInfo() => BDVK.isfolder attribute :( */ |
|
265 | :bool dir_exists(dword fpath) |
263 | bool real_dir_exists(dword fpath) |
266 | { |
264 | { |
267 | BDVK fpath_atr; |
265 | BDVK fpath_atr; |
268 | if (GetFileInfo(fpath, #fpath_atr) != 0) return false; |
266 | if (GetFileInfo(fpath, #fpath_atr) != 0) return false; |
269 | return fpath_atr.isfolder; |
267 | return fpath_atr.isfolder; |
270 | } |
- | |
Line 271... | Line 268... | ||
271 | */ |
268 | } |
272 | 269 | ||
273 | :bool file_exists(dword fpath) |
270 | :bool file_exists(dword fpath) |
274 | { |
271 | { |