mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
* Add support for systems that support unichar file paths (e.g.
Windows). * Headers/Foundation/NSFileManager.h (-localFromOpenStepPath:, _openStepPathFromLocal:): New methods. (NSDirectoryEnumerator): Updated ivars. * Source/NSFileManager.m: Idem. (-changeCurrentDirectoryPath, changeFileAttributes:, currentDirectoryPath, etc): Update for Windows unichar paths. * Headers/Foundation/NSString.h: (-unicharString, -localFromOpenStepPath:, _openStepPathFromLocal:): New methods. * Source/NSString.m: Idem. * Source/GSFileHandle.m (-initForReadingAtPath:, -initForWritingAtPath, -initForUpdatingAtPath:): Update for Windows unichar paths. * Source/NSData.m (readContentsOfFile, -writeToFile:, initWithContentsOfMappedFile:): Idem. * Source/NSTask.m (NSConcreteWindowsTask): Update for Windows unichar paths. (Patch from Roland Schwingle <roland.schwingel@onevision.de>) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20502 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0de118ae76
commit
a861c353bd
9 changed files with 1171 additions and 801 deletions
|
@ -76,6 +76,10 @@
|
|||
- (BOOL) fileExistsAtPath: (NSString*)path isDirectory: (BOOL*)isDirectory;
|
||||
- (NSDictionary*) fileSystemAttributesAtPath: (NSString*)path;
|
||||
- (const char*) fileSystemRepresentationWithPath: (NSString*)path;
|
||||
#ifndef NO_GNUSTEP
|
||||
- (NSString*) localFromOpenStepPath:(NSString*)path;
|
||||
- (NSString*) openStepPathFromLocal:(NSString*)localPath;
|
||||
#endif
|
||||
- (BOOL) isExecutableFileAtPath: (NSString*)path;
|
||||
- (BOOL) isDeletableFileAtPath: (NSString*)path;
|
||||
- (BOOL) isReadableFileAtPath: (NSString*)path;
|
||||
|
@ -155,9 +159,9 @@
|
|||
@interface NSDirectoryEnumerator : NSEnumerator
|
||||
{
|
||||
void *_stack; /* GSIArray */
|
||||
char *_top_path;
|
||||
char *_current_file_path;
|
||||
NSString *(*_stringWithFileSysImp)(id, SEL, char *, unsigned);
|
||||
NSString *_topPath;
|
||||
NSString *_currentFilePath;
|
||||
NSString *(*_openStepPathFromLocalImp)(id, SEL, id);
|
||||
struct
|
||||
{
|
||||
BOOL isRecursive: 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue