Post

Replies

Boosts

Views

Activity

Reply to fileManager.copyItem with overwrite?
The sourceFolderURL has path '/Volumes/RMP_Nearline/To_Archive/TAA/2019/190002_TA_Carnegie_Storytelling' The outputLocationURL has path '/Volumes/RMP_Nearline/To_Archive/TAA/2019/To_Box/' plus sourceFolderURL.lastPathComponent In this case it copies about 3.5GB before failing. Another note is that these directories are on Xsan volumes. So there isn't an option to force file manager to overwrite? Is there another method that would get me that result?
Oct ’23
Reply to fileManager.copyItem with overwrite?
The error I am getting is: Large file found, copy failed - Error Domain=NSCocoaErrorDomain Code=516 "“.DS_Store” couldn’t be copied to “Audio” because an item with the same name already exists." UserInfo={NSSourceFilePathErrorKey=/Volumes/RMP_Nearline/To_Archive/TAA/2019/190002_TA_Carnegie_Storytelling/Audio/.DS_Store, NSUserStringVariant=( Copy ), NSDestinationFilePath=/Volumes/RMP_Nearline/To_Archive/TAA/2019/To_Box/190002_TA_Carnegie_Storytelling/Audio/.DS_Store, NSFilePath=/Volumes/RMP_Nearline/To_Archive/TAA/2019/190002_TA_Carnegie_Storytelling/Audio/.DS_Store, NSUnderlyingError=0x60000195ce10 {Error Domain=NSPOSIXErrorDomain Code=17 "File exists"}} But the output location is empty when I start the copy. The paths are very similar, but notice the To_Box in the destination path. I should also note these are large video project directories. This one is 5.3TB. I don't see the problem on small test directories. I made a small project https://github.com/ehemmete/CopyFolder that shows the same problem on the same folders. The error is always about .DS_Store files, so I expect that something (the Finder) is creating them before the copy gets to copying them over?
Oct ’23
Reply to macOS get SSID changes?
Yes, I got it working with Location Services. I added a file for a LocationController and then in my main view added an onAppear(perform: { if LocationServices.shared.locationManager.authorizationStatus == .authorizedAlways { LocationServices.shared.userLocationDelegate = self } else { LocationServices.shared.locationManager.requestAlwaysAuthorization() } }) My code is up at https://github.com/ehemmete/NetworkView
Aug ’23
Reply to macOS get SSID changes?
Putting this in a command line macOS app and a playground yield different results. The app prints unavailable, the playground prints the SSID name. import Foundation import CoreWLAN let client = CWWiFiClient.shared() let ssid_name = client.interface()?.ssid() ?? "unavailable" print(ssid_name)
Jun ’23