Changeset 4756

Show
Ignore:
Timestamp:
05/12/07 02:26:12 (1 year ago)
Author:
morris
Message:

Fix checking for existing transfers when a folder with the same prefix name is in the list

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCTransfers.m

    r4751 r4756  
    236236        while((eachTransfer = [enumerator nextObject])) { 
    237237                if([eachTransfer isFolder]) { 
    238                         if([path hasPrefix:[eachTransfer virtualPath]]) 
     238                        if([[eachTransfer virtualPath] isEqualToString:path] || 
     239                           [path hasPrefix:[[eachTransfer virtualPath] stringByAppendingString:@"/"]]) 
    239240                                transfer = eachTransfer; 
    240241                } else { 
     
    557558 
    558559        if([self _transferWithPath:[file path]]) { 
    559                  
    560560                error = [WCError errorWithDomain:WCWiredClientErrorDomain code:WCWiredClientTransferExists argument:[file path]]; 
    561561                [self _presentError:error]; 
  • WiredClient/trunk/WiredClient.xcodeproj/project.pbxproj

    r4752 r4756  
    240240                        remoteGlobalIDString = 8DC2EF5B0486A6940098B216; 
    241241                        remoteInfo = "Wired Additions"; 
    242                 }; 
    243                 A5E8BAFB08748EFD0010F2A4 /* PBXContainerItemProxy */ = { 
    244                         isa = PBXContainerItemProxy; 
    245                         containerPortal = A544C1B90758E0E9008446CF /* WiredAdditions.xcodeproj */; 
    246                         proxyType = 2; 
    247                         remoteGlobalIDString = A5E4B39E07A9797200BD6812; 
    248                         remoteInfo = "ZAAutoreleasePool Test"; 
    249                 }; 
    250                 A5E8BAFD08748EFD0010F2A4 /* PBXContainerItemProxy */ = { 
    251                         isa = PBXContainerItemProxy; 
    252                         containerPortal = A544C1B90758E0E9008446CF /* WiredAdditions.xcodeproj */; 
    253                         proxyType = 2; 
    254                         remoteGlobalIDString = A553B5E007AAF56E005EE3E5; 
    255                         remoteInfo = "ZANotificationCenter Test"; 
    256                 }; 
    257                 A5E8BAFF08748EFD0010F2A4 /* PBXContainerItemProxy */ = { 
    258                         isa = PBXContainerItemProxy; 
    259                         containerPortal = A544C1B90758E0E9008446CF /* WiredAdditions.xcodeproj */; 
    260                         proxyType = 2; 
    261                         remoteGlobalIDString = A5E4B55207A98AEE00BD6812; 
    262                         remoteInfo = "ZAObject Test"; 
    263242                }; 
    264243                A5E8BB69087490C80010F2A4 /* PBXContainerItemProxy */ = { 
     
    11731152                        children = ( 
    11741153                                A5E8BAFA08748EFD0010F2A4 /* WiredAdditions.framework */, 
    1175                                 A5E8BAFC08748EFD0010F2A4 /* WIAutoreleasePool Test.app */, 
    1176                                 A5E8BAFE08748EFD0010F2A4 /* WINotificationCenter Test.app */, 
    1177                                 A5E8BB0008748EFD0010F2A4 /* WIObject Test.app */, 
    11781154                        ); 
    11791155                        name = Products; 
     
    12351211                        path = WiredAdditions.framework; 
    12361212                        remoteRef = A5E8BAF908748EFD0010F2A4 /* PBXContainerItemProxy */; 
    1237                         sourceTree = BUILT_PRODUCTS_DIR; 
    1238                 }; 
    1239                 A5E8BAFC08748EFD0010F2A4 /* WIAutoreleasePool Test.app */ = { 
    1240                         isa = PBXReferenceProxy; 
    1241                         fileType = wrapper.application; 
    1242                         path = "WIAutoreleasePool Test.app"; 
    1243                         remoteRef = A5E8BAFB08748EFD0010F2A4 /* PBXContainerItemProxy */; 
    1244                         sourceTree = BUILT_PRODUCTS_DIR; 
    1245                 }; 
    1246                 A5E8BAFE08748EFD0010F2A4 /* WINotificationCenter Test.app */ = { 
    1247                         isa = PBXReferenceProxy; 
    1248                         fileType = wrapper.application; 
    1249                         path = "WINotificationCenter Test.app"; 
    1250                         remoteRef = A5E8BAFD08748EFD0010F2A4 /* PBXContainerItemProxy */; 
    1251                         sourceTree = BUILT_PRODUCTS_DIR; 
    1252                 }; 
    1253                 A5E8BB0008748EFD0010F2A4 /* WIObject Test.app */ = { 
    1254                         isa = PBXReferenceProxy; 
    1255                         fileType = wrapper.application; 
    1256                         path = "WIObject Test.app"; 
    1257                         remoteRef = A5E8BAFF08748EFD0010F2A4 /* PBXContainerItemProxy */; 
    12581213                        sourceTree = BUILT_PRODUCTS_DIR; 
    12591214                };