Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bcomer

macrumors regular
Original poster
Jan 25, 2008
205
145
Ottawa
I have an application that adds/moves files around but Finder is out of sync after running it.
This has been happening since Catalina - anyone else seeing this?
 

DeltaMac

macrumors G5
Jul 30, 2003
13,750
4,574
Delaware
what is the symptom that makes you conclude that "Finder is out of sync"?

You are running Big Sur. Are you currently updated (macOS 11.6 or 11.6.1)?
I see that you posted about this a couple of months ago.
Is it still the same issue?
What app are you using to move files on your Mac?
Is it possible that there is an update for that app?
 

bcomer

macrumors regular
Original poster
Jan 25, 2008
205
145
Ottawa
what is the symptom that makes you conclude that "Finder is out of sync"?

You are running Big Sur. Are you currently updated (macOS 11.6 or 11.6.1)?
I see that you posted about this a couple of months ago.
Is it still the same issue?
What app are you using to move files on your Mac?
Is it possible that there is an update for that app?
It is an application I wrote so it is up to date.

Open Finder on folder X, change focus to another folder, run application that adds say five files to X, open Finder again on X and the files are not listed. If you open a terminal session and ‘ls -l’ they are listed.
 
Last edited:

Significant1

macrumors 68000
Dec 20, 2014
1,680
776
Do they appear if you switch to another folder and and go back. Else try shift+cmd+"." to show hidden files.
 

bcomer

macrumors regular
Original poster
Jan 25, 2008
205
145
Ottawa
Do they appear if you switch to another folder and and go back. Else try shift+cmd+"." to show hidden files.
Thanks for the advise but that should not be needed. If I reboot the machine or relaunch Finder they appear. I have been a software developer for 35 years and this behaviour is unacceptable. It is not a file permission or ownership issue.
 

Significant1

macrumors 68000
Dec 20, 2014
1,680
776
Thanks for the advise but that should not be needed. If I reboot the machine or relaunch Finder they appear. I have been a software developer for 35 years and this behaviour is unacceptable. It is not a file permission or ownership issue.
You should have stated that in the first post. Is it really nessasary to relaunch Finder. Will it not update, if you switch to another folder and back.

From a user perspektive, I have never experienced Finder to be out of sync. It almost sounds like some systemprocess is being blocked or hanging. If finder responding and acting normal otherwise.

As a developer, you should try to make a small test case, where you limit the number variables to narrow down the problem. I am no longer an active developer myself (long time ago) and when I was, it was windows. So I am just guessing and I also don't know what development environment you are using anyway. Could it be, that you are somehow blocking access to the files. E.g. not closing them or releasing a handle. Maybe the api you are using to managing the files, needs som kind of close/end command to finalize things.

Maybe you can test with another way of doing. Depending on language and api, you might find better answer in related developer forums. If there is a problem, I bet you are not the first.
 

Slartibart

macrumors 68040
Aug 19, 2020
3,140
2,815
you can force the finder to update the window content e.g. using AppleScript:

tell application "Finder" tell front window update every item with necessity end tell end tell

create a new service in Automator, add the Run AppleScript action to your Service, save it and then e.g. assign it to a keyboard shortcut.
 
  • Like
Reactions: bcomer
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.