titust wrote:
Maybe it's an older problem but I just ran into.
It sounds about what I would expect based on the last time I had access to an SMB server circa 2017.
I have a SMB share on a NAS that can be accessed both by my Mac as well as by Windows. If I share it on my Mac and I want to delete a large folder with many files inside (for example a copy of my Mac home folder that I temporarily backed up on that share) the finder takes for ever more (than 24h), and eventually finishes by crashing and does not do much deletion.
If I map the same share on Windows deleting the same folder it takes less than 5 minutes.
I find this behaviour totally ridiculous from the OS is are not able to deal with SMB shares.
I know I can eventually use the terminal to do the same thing, but should I? Why do we have the Finder for?
You're asking the wrong questions.
You should have asked if it was a good idea to copy your entire Mac home folder to an SMB share. Had you done that, the answer would have been a resounding "no", thereby avoiding this issue.
Now, you have a folder on your SMB share full of files that are likely useless to Windows and probably inaccessible and unusable on the Mac. I recommend you delete it by whatever the most efficient method might be. I'm sure that the least efficient method would be via macOS. I actually think using Finder would be better because it would just merely crash Finder. If you used Terminal, the crash would be deeper into the file system/networking layer and much more difficult to resolve. It might leave the server itself in a bad state.
In short, I wouldn't recommend using a Mac to access a network volume. In my experience circa 2017, we had a whole team of very good admin people, absolute, top-of-the-line servers and network gear, and literally unlimited funding. Couldn't make it work. Merely opening a Finder window on a folder with lots of images would trigger a Quicklook cascade that would crash the Finder. Actually attempting to edit a document on the server was guaranteed corruption. I was able to limit the corruption by maintaining local backups and limiting most users other than myself to read-only on the network.
It was little more than a glorified FTP server. I had to download documents, edit them locally, and then copy them back to the server. But at least back then, with our Active Directory network, I could use auto mount to easily connect to the network when needed. But Apple dropped support for that and even deleted the one (1) document explaining how to do it.
Instead, I recommend some kind of document management system like Atlassian Confluence. We had that in 2017 too and it worked great. If you want real-time collaboration, use Google Docs or similar. I would love to be able to recommend an Apple solution, but this just isn't anything that Apple values. And to be honest, it isn't 1999 anymore. One successful phishing click and your network is gone and encrypted behind a malicious crypto-paywall. And that won't be the fault of any Apple product I guarantee.