mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-04-22 12:55:44 +00:00
* Apps/EOModelEditor/CodeGenerator.m
-updateNeededForFileAtPath:content:canOverwrite: do not overwrite files if canOverwrite = NO git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30846 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
577d0e7cda
commit
1f508f3bc5
2 changed files with 8 additions and 0 deletions
|
@ -196,6 +196,10 @@
|
|||
NSFileManager * fileManager = [NSFileManager defaultManager];
|
||||
|
||||
if ([fileManager fileExistsAtPath:aPath]) {
|
||||
if (!overwrite) {
|
||||
return NO;
|
||||
}
|
||||
|
||||
NSString * myStr = [NSString stringWithContentsOfFile:aPath
|
||||
encoding:NSUTF8StringEncoding
|
||||
error:NULL];
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2010-06-24 David Wetzel <dave@turbocat.de>
|
||||
* Apps/EOModelEditor/CodeGenerator.m
|
||||
-updateNeededForFileAtPath:content:canOverwrite:
|
||||
do not overwrite files if canOverwrite = NO
|
||||
2010-06-24 David Wetzel <dave@turbocat.de>
|
||||
* README
|
||||
add Additional Notes
|
||||
|
|
Loading…
Reference in a new issue