Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005456 [Squeak] Files major always 11-18-06 01:31 11-18-06 01:31
Reporter ChrisC View Status public  
Assigned To cdegroot
Priority normal Resolution open  
Status assigned   Product Version
Summary 0005456: File Rename doesn't work with relative path files
Description Using a FileDirectory instance, you can't currently rename files with relative paths, even though the code should support it. That is, the following code will ALWAYS fail:

FileDirectory default rename: 'path\filename.ext' toBe: 'path\newFileName.ext'

The reason for this is that in the method it calls FileDirectory>>fileExists: with the raw requested file (that is, with the relative path), even though this call (#fileExists:) requires a full path name and even though the method has already calculated this full path name.
Additional Information Here is a proposed fix. It changes the calls to #fileExists: to use the already calucated full path name.

Also, this bug has been in Squeak for a long time. This particular fix is based off of 3.8.1 - I know the bug was in older versions, I am unsure about the status in 3.9, although I suspect it is there, too.
Attached Files  FileRenameFix.1.cs.gz [^] (612 bytes) 11-18-06 01:31

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
11-18-06 01:31 ChrisC New Issue
11-18-06 01:31 ChrisC Status new => assigned
11-18-06 01:31 ChrisC Assigned To  => cdegroot
11-18-06 01:31 ChrisC File Added: FileRenameFix.1.cs.gz


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
32 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker