Score:0

Copy finds 'ghost file' with no size that cannot be accessed

um flag

I have a link to a remote directory (via ssh) in my file explorer (Ubuntu 20.04) /foo. There are two folders inside - /foo/Results and /foo/Exchange. The Exchange folder is empty. When I copy a file "blade" from /foo/Results to /foo/Exchange, file explorer tries to replace a file in the /Exchange directory. The claimed original file has 0B and no modification date (I see those informations in the pop up window while copying) and when I try to replace it the process fails with: Error opening file “/foo/Exchange/blade”: No such file or directory. When I list the files in the /Exchange directory in the terminal nothing shows up. If I copy the file from terminal it works. I am the owner of all folders and files there.

I have a python script that uses shutil.copy and it crashes with the: FileNotFoundError: [Errno 2] No such file or directory: /foo/Exchange/blade. I really don't want to change that python script so replacing the shutil.copy with bash commands will not work here. What can I do to remove this "ghost file"?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.