ObjFW  Diff

Differences From Artifact [a9164c7ec2]:

To Artifact [b4a095ba9a]:


320
321
322
323
324
325
326
327
328
329
330

331
332
333


334
335

336
337
338
339
340
341
342
	[copy makeImmutable];

	return copy;
}

- (void)appendPathComponent: (OFString *)component
{
	bool isDirectory = false;

#ifdef OF_HAVE_FILES
	if ([_scheme isEqual: @"file"] &&

	    [[OFFileManager defaultManager] directoryExistsAtIRI: self])
		isDirectory = true;
#endif



	[self appendPathComponent: component isDirectory: isDirectory];

}

- (void)appendPathComponent: (OFString *)component
		isDirectory: (bool)isDirectory
{
	void *pool;
	OFString *path;







|



>
|
|
|
>
>
|
<
>







320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337

338
339
340
341
342
343
344
345
	[copy makeImmutable];

	return copy;
}

- (void)appendPathComponent: (OFString *)component
{
	[self appendPathComponent: component isDirectory: false];

#ifdef OF_HAVE_FILES
	if ([_scheme isEqual: @"file"] &&
	    ![_percentEncodedPath hasSuffix: @"/"] &&
	    [[OFFileManager defaultManager] directoryExistsAtIRI: self]) {
		OFString *path = [[_percentEncodedPath
		    stringByAppendingString: @"/"] retain];
		[_percentEncodedPath release];
		_percentEncodedPath = path;
	}

#endif
}

- (void)appendPathComponent: (OFString *)component
		isDirectory: (bool)isDirectory
{
	void *pool;
	OFString *path;