Author Topic: renaming folder changes status of files in catalogue  (Read 4426 times)

Offline myotis

  • Full Member
  • ***
  • Posts: 189
    • View Profile
renaming folder changes status of files in catalogue
« on: June 08, 2021, 10:07:50 AM »
PM6+ 5820 (a6fdbc) and High Sierra.

When I rename a just ingested folder (inside PM6) the files in the browser lose their green "in catalog" status icon. 

I am adding the files to the catalogue on ingest, and PM6 is creating the dated subfolder where the files are ingested into.

The ingest folder is called  "2021-06-08" 
Status indicator is green (images in the main browser and in catalogue when browsing by capture time appear with a green status indicator)

If I rename the folder to "2021-06-08  Stourhead"   
Status indicator is now an empty circle (images in the main browser and in catalogue when browsing by capture time appear with an empty status indicator)

If I rename the folder back to "2021-06-08" 
Status Indicator returns to green (images in the main browser and in catalogue when browsing by capture time appear with a green status indicator)

 It seems to be a bug introduced with the latest update. Unless this is to do with something I have missed, as adding some descriptive descriptive text to the folder name after ingest, has been my practice with PM and now PM6+ for years.

If I rename the folder and then do a quick sync, this turns the status indicator green for all the files that had an empty status indicator (but were still visible in the catalogue). However, it also duplicates the files.

So in this specific example I go from 40 files with an empty status indicator to 80 files with a green status indicator.

Hopefully, that makes sense.

As an aside, is there a quick way of finding and deleting the duplicates from the catalogue?

Cheers,

Graham


Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: renaming folder changes status of files in catalogue
« Reply #1 on: June 08, 2021, 10:56:55 AM »
Graham,

PM6+ 5820 (a6fdbc) and High Sierra.

When I rename a just ingested folder (inside PM6) the files in the browser lose their green "in catalog" status icon. 

By what mechanism in Photo Mechanic Plus are you renaming the folder?

-Kirk

Offline myotis

  • Full Member
  • ***
  • Posts: 189
    • View Profile
Re: renaming folder changes status of files in catalogue
« Reply #2 on: June 08, 2021, 02:06:22 PM »
By what mechanism in Photo Mechanic Plus are you renaming the folder?

Right clicking on the folder in the PM folder tree and using the rename option in the context menu.

Graham

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: renaming folder changes status of files in catalogue
« Reply #3 on: June 08, 2021, 02:52:39 PM »
Graham,

By what mechanism in Photo Mechanic Plus are you renaming the folder?

Right clicking on the folder in the PM folder tree and using the rename option in the context menu.

Specifically, the Navigator or Favorites?

-Kirk

Offline myotis

  • Full Member
  • ***
  • Posts: 189
    • View Profile
Re: renaming folder changes status of files in catalogue
« Reply #4 on: June 08, 2021, 10:56:08 PM »
Specifically, the Navigator or Favorites?

Favorites, sorry I should have said.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: renaming folder changes status of files in catalogue
« Reply #5 on: June 09, 2021, 03:27:25 PM »
Graham,

Can you please try this build?  https://www.camerabits.com/download/PhotoMechanicPlusR5886_e0cccfe0.dmg

It should handle the type of renaming that you're doing.

Thanks,

-Kirk

Offline myotis

  • Full Member
  • ***
  • Posts: 189
    • View Profile
Re: renaming folder changes status of files in catalogue
« Reply #6 on: June 10, 2021, 01:45:58 AM »
Graham,

Can you please try this build?  https://www.camerabits.com/download/PhotoMechanicPlusR5886_e0cccfe0.dmg

It should handle the type of renaming that you're doing.

This appears to have fixed it. However on renaming, the green status icon changes from green to empty and back to green again. It changed to empty long enough for me to think it wasn't fixed, but then it turned to green. 

I can't say I had noticed this delay in the past, but I probably wasn't paying this amount of attention before. It may not be relevant, but thought I would mention it.

Many thanks for the rapid fix :)

Cheers,

Graham

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: renaming folder changes status of files in catalogue
« Reply #7 on: June 10, 2021, 08:44:24 AM »
Graham,

Can you please try this build?  https://www.camerabits.com/download/PhotoMechanicPlusR5886_e0cccfe0.dmg

It should handle the type of renaming that you're doing.

This appears to have fixed it. However on renaming, the green status icon changes from green to empty and back to green again. It changed to empty long enough for me to think it wasn't fixed, but then it turned to green.

This is expected behavior.  There is a moment in time where the change to the directory has happened but the various database values haven't been updated.  When they finish updating the status updates to reflect the current state.

Many thanks for the rapid fix :)

You're welcome.

-Kirk