File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 2025-04-17 Wolfgang Lux <wolfgang.lux@gmail.com>
2+
3+ * Source/NSFileManager.m (removeFileAtPath:handler:):
4+ Call the error handler also when a file to be removed does not
5+ exist.
6+
172025-04-16 Richard Frith-Macdonald <rfm@gnu.org>
28
39 * Source/NSPropertyList.m: When parsing OpenStep style property list,
Original file line number Diff line number Diff line change @@ -1748,7 +1748,11 @@ - (BOOL) removeFileAtPath: (NSString*)path
17481748
17491749 if (res == WIN32ERR)
17501750 {
1751- return NO ;
1751+ NSString *message = [[NSError _last ] localizedDescription ];
1752+
1753+ return [self _proceedAccordingToHandler: handler
1754+ forError: message
1755+ inPath: path];
17521756 }
17531757 if (res & FILE_ATTRIBUTE_DIRECTORY)
17541758 {
@@ -1763,7 +1767,11 @@ - (BOOL) removeFileAtPath: (NSString*)path
17631767
17641768 if (lstat (lpath, &statbuf) != 0 )
17651769 {
1766- return NO ;
1770+ NSString *message = [[NSError _last ] localizedDescription ];
1771+
1772+ return [self _proceedAccordingToHandler: handler
1773+ forError: message
1774+ inPath: path];
17671775 }
17681776 is_dir = ((statbuf.st_mode & S_IFMT) == S_IFDIR);
17691777#endif /* _WIN32 */
You can’t perform that action at this time.
0 commit comments