Specific file shows in directory on Explorer, but not in mirrored directory on Google Drive


Buddy

Well-known member
Member
Local time
7:50 PM
Posts
236
Location
Memphis TN
OS
Windows 11 23H2
I do regular backups from the C:\ drive to Google Drive's "My Drive". I'm letting Google Drive sync, this is a backup defined in FreeFileSync to look at specific directories and make that directory on G: match the contents of the same directory on C;\. Adds new files, updates newer versions from C>G, deletes anything found on G: that isn't present on C:

This all worked fine for maybe 2 years. About 2 weeks ago, I updated to 24H2. After that, when FFS tried to delete a particular file it found on G: that didn't have a match on C:, it threw a message "unable to delete, file not found in G:\directory name." So I open G: in Windows Explorer. Find the offending file. Try to delete it. Explorer says "this is no longer located in G:\directory." Try the same thing with the browser interface to My Drive. Weird. The file isn't showing there. So Explorer thinks it's there, but it's not.

Got a tech call going with Google. They had me disconnect/reconnect. That caused some misery that I eventually got around. And for a day or so, FFS wasn't complaining. Then, it started again.

Ideas, anyone?
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad X1 Carbon G10
    CPU
    i5-1240p
    Memory
    16gb
    Graphics Card(s)
    Whatever comes in it
    Sound Card
    Whatever comes in it
    Monitor(s) Displays
    No external monitor. Yet.
    Screen Resolution
    1920 x 1200
    Hard Drives
    Internal 512 GB SSD
    Desktop 6 TB, 1 TB, 225 GB, all HDDs
    Portable 4TB SSD, 2TB HDD
    A whole army of USB flash memory sticks
    Mouse
    Logitech M317
    Internet Speed
    500 mbps Fiber
    Browser
    Chrome
    Antivirus
    Windows Defender
    Other Info
    CalDigit TS4 dock for all my USB stuff, speakers, and connect to Android phone
    HP MFP M277dw laser printer/scanner
open command prompt and cd to that directory. run "dir" command and see if the file shows in the output in command prompt
 

My Computer

System One

  • OS
    Windows 11 Pro
open command prompt and cd to that directory. run "dir" command and see if the file shows in the output in command prompt
Yes, the file shows from command prompt. So, looking at G:\ using both Explorer and dir from the command prompt shows it present, looking at Google Drive through the browser interface does not show it present. And legitimately, it shouldn't be there. It's not a file that you would normally find in the four or five directories flagged.

In all of them, it's desktop.ini. Out of curiosity, I tried to open it from Explorer using Notepad. And, of course, Notepad pops the error message "cannot find desktop.ini".

It would appear that FFS uses some hooks in Explorer to compare directories and files and decide what action it will take.

The whole business might seem pretty trivial, but I've got all my FFS backups set up in Task Scheduler to run without intervention on a time schedule. Now, the C>G backup requires attention every time to tell FFS to ignore that it can't delete the files that aren't present in the target.

And no, I don't want to set Google Drive up to real-time sync. For one, I don't need access to my files from multiple machines. Also, if I mess something up, I can just go to G: and grab the previous good version. And FFS maintains a version history, as well, which is also on G:, so I can get prior good versions if I need. Doesn't happen often, but when it does, it's very helpful.
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad X1 Carbon G10
    CPU
    i5-1240p
    Memory
    16gb
    Graphics Card(s)
    Whatever comes in it
    Sound Card
    Whatever comes in it
    Monitor(s) Displays
    No external monitor. Yet.
    Screen Resolution
    1920 x 1200
    Hard Drives
    Internal 512 GB SSD
    Desktop 6 TB, 1 TB, 225 GB, all HDDs
    Portable 4TB SSD, 2TB HDD
    A whole army of USB flash memory sticks
    Mouse
    Logitech M317
    Internet Speed
    500 mbps Fiber
    Browser
    Chrome
    Antivirus
    Windows Defender
    Other Info
    CalDigit TS4 dock for all my USB stuff, speakers, and connect to Android phone
    HP MFP M277dw laser printer/scanner
desktop.ini is in every folder if you show system protected files. it just contains info and settings per folder, like the icon used for it and its localized name.
 

My Computer

System One

  • OS
    Windows 11 Pro
desktop.ini is in every folder if you show system protected files. it just contains info and settings per folder, like the icon used for it and its localized name.
Maybe so, but something has changed. I've been using these same FreeFileSync definitions for close to three years, and this problem only started after the 24H2 update. Coincidence or not, that's the timing. And I need a fix.
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad X1 Carbon G10
    CPU
    i5-1240p
    Memory
    16gb
    Graphics Card(s)
    Whatever comes in it
    Sound Card
    Whatever comes in it
    Monitor(s) Displays
    No external monitor. Yet.
    Screen Resolution
    1920 x 1200
    Hard Drives
    Internal 512 GB SSD
    Desktop 6 TB, 1 TB, 225 GB, all HDDs
    Portable 4TB SSD, 2TB HDD
    A whole army of USB flash memory sticks
    Mouse
    Logitech M317
    Internet Speed
    500 mbps Fiber
    Browser
    Chrome
    Antivirus
    Windows Defender
    Other Info
    CalDigit TS4 dock for all my USB stuff, speakers, and connect to Android phone
    HP MFP M277dw laser printer/scanner
delete desktop.ini with command line. it'll just come back though.

you can do this, but it may not persist to stick

 

My Computer

System One

  • OS
    Windows 11 Pro
delete desktop.ini with command line. it'll just come back though.

you can do this, but it may not persist to stick

That's the thing. You can't delete desktop.ini. Just tried that from the command prompt and it says "the system cannot find the file specified". And it's right there in the directory listing for G:\My Drive. But if you look at the same directory on the browser interface, it's not there.

And that's what FFS is complaining about. It finds the file in the backup directory, sees that is isn't present in the directory being backed up, and pops and error message about being unable to delete it. Same as command line, same as Explorer.

The problem, as I see it, is that the local image of the Google Drive directory (AKA the G: drive) doesn't match the actual contents at the cloud site. Explorer and command prompt look at the local image, browser interface looks at the cloud site. G: thinks the file is there, browser interface says it's not. Go figure...
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad X1 Carbon G10
    CPU
    i5-1240p
    Memory
    16gb
    Graphics Card(s)
    Whatever comes in it
    Sound Card
    Whatever comes in it
    Monitor(s) Displays
    No external monitor. Yet.
    Screen Resolution
    1920 x 1200
    Hard Drives
    Internal 512 GB SSD
    Desktop 6 TB, 1 TB, 225 GB, all HDDs
    Portable 4TB SSD, 2TB HDD
    A whole army of USB flash memory sticks
    Mouse
    Logitech M317
    Internet Speed
    500 mbps Fiber
    Browser
    Chrome
    Antivirus
    Windows Defender
    Other Info
    CalDigit TS4 dock for all my USB stuff, speakers, and connect to Android phone
    HP MFP M277dw laser printer/scanner
IF IT WILL NOT DELETE:

Enter:
Code:
dir /x /a

The /a shows All files and folders, even those with Hidden or other attributes

The /x switch inserts a column between the file size and the LFN (Long File Name) showing the SFN (Short File Name), also known as the 8.3 filename, for each file and folder

So, find that entry in the directory listing and note its SFN
If it's "monopo~1" (for example)

FILE:
Code:
del monopo~1


FOLDER:
Code:
rd monopo~1 /s

This rd (Remove Directory) command, with the /s switch, will remove the folder, plus all its files and subfolders, so you will be asked to confirm that you really want to do this.
 

My Computer

System One

  • OS
    Windows 11 Pro
The extra column gets inserted, but all the short file names are blank.
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad X1 Carbon G10
    CPU
    i5-1240p
    Memory
    16gb
    Graphics Card(s)
    Whatever comes in it
    Sound Card
    Whatever comes in it
    Monitor(s) Displays
    No external monitor. Yet.
    Screen Resolution
    1920 x 1200
    Hard Drives
    Internal 512 GB SSD
    Desktop 6 TB, 1 TB, 225 GB, all HDDs
    Portable 4TB SSD, 2TB HDD
    A whole army of USB flash memory sticks
    Mouse
    Logitech M317
    Internet Speed
    500 mbps Fiber
    Browser
    Chrome
    Antivirus
    Windows Defender
    Other Info
    CalDigit TS4 dock for all my USB stuff, speakers, and connect to Android phone
    HP MFP M277dw laser printer/scanner

Latest Tutorials

Back
Top Bottom