Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiacalendar
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added DTSTAMP property for saving data from a CalendarJournalObject.
[xestiacalendar/.git]
/
source
/
common
/
file.cpp
diff --git
a/source/common/file.cpp
b/source/common/file.cpp
index
da236b3
..
01526d0
100644
(file)
--- a/
source/common/file.cpp
+++ b/
source/common/file.cpp
@@
-8,16
+8,14
@@
bool FileExists(std::string Filename){
#else
#else
- const char *FilenameChar = Filename.c_str();
-
- int rescode = access(FilenameChar, R_OK);
-
- if (errno == ENOENT){
+ struct stat BuffData;
+
+ if (stat(Filename.c_str(), &BuffData) == -1){
return false;
}
#endif
return false;
}
#endif
-
+
return true;
}
\ No newline at end of file
return true;
}
\ No newline at end of file
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy