"Joseph J. Strout" <joe at strout dot net> wrote:
>>
>> I have downloaded the demo version of 2006r1. Here is my output from the
>> debugger:
>>
>> SourcePath: Firewire 400:Users:jeffrey:New Files:Sigma Chess 6.0.2 306222
>> (This should be the option-f character. This is the original location, found
>> by using shellpath).
>
> OK, but why are you using shellpath? That's the part I don't understand. If
> you use AbsolutePath, or Name, you should see exactly the same thing you see
> in the Finder.
>
> ShellPaths obey different rules; I'd expect you to get pretty much the same
> thing you see if you do a "ls" on that directory in Terminal.
>
> HTH,
> * Joe
Hi, Joe--
I replaced all my .shellpath¹s with .absolutepath¹s. And sure enough, the
issue with truncated filenames has been fixed in 2006r1. So , again, thank
you :)
However, now the origin which is later sent to the CopyFileorFolder method,
is showing for some reason with a ³::² (double-colon) at the end of path.
Here¹s the relevant part of the code. I have run this in the debugger, and
up to this point, all the absolutepaths are as expected.
This section is where the ³::² appears.
for i=0 to TargetList.listcount-1
if TargetList.cell(i,2) <> "" then //if a target root folder is stored
in this cell
// this was marked as a missing item
sourcerootpath=TargetList.cell(i,3)//this is the cell where the
//absolutepath to the root source folder being examined is stored in
the listbox
targetrootPath=TargetList.cell(i,2)//this is the cell where the
//absolutepath to the root target folder being examined is stored in
the listbox
sourcepath=TargetList.cell(i,1)//this is the cell where the
//absolutepath to the missing item in it¹s location in the source is
stored in the listbox.
//replace the source path with the target path to create the correct
Target path for
//the missing item
targetpath=Replace(sourcepath,sourcerootpath,targetrootPath)
//get the FolderItems
f=new folderitem(sourcerootpath)
f=f.child(nthField(sourcepath,":",countfields(sourcepath,":")))
g=new folderitem(targetrootPath)
g=g.child(nthField(targetpath,":",countfields(targetpath,":")))
//copy the file
origin=f//this folderitem reports it¹s absolutepath as ending in ³::²
If origin <> Nil then
destination=g
If destination <> Nil then
//do the copy
CopyFileOrFolder origin, destination
end if
end if
end if
next
Here are the variables when hitting this point in the debugger:
sourcerootpath: Firewire 400:Users:jeffrey:New Files:
targetrootpath: Firewire 400:Users:jeffrey:Desktop:New Files:
sourcepath: Firewire 400:Users:jeffrey:New Files:Sigma Chess 6.0.2 :
targetpath: Firewire 400:Users:jeffrey:Desktop:New Files:Sigma Chess 6.0.2
:
//please note all paths are correct to this point.
f: FolderItem: AbsolutePath: Firewire 400:Users:jeffrey:New Files::
g: Folderitem: AbsolutePath: Firewire 400:Users:jeffrey:Desktop:New Files::
origin: FolderItem: AbsolutePath: Firewire 400:Users:jeffrey:New Files::
destination: Folderitem: AbsolutePath: Firewire
400:Users:jeffrey:Desktop:New Files::
Can you explain this to me?
All My Best,
Jeffrey
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>