Giter Club home page Giter Club logo

Comments (6)

mikekenyon99 avatar mikekenyon99 commented on July 2, 2024 1

I have fixed it... I found an album that was under the Shared Album section.... All good now apologies for logging ticket.

from osxphotos.

oPromessa avatar oPromessa commented on July 2, 2024
  • So to confirm. You've updated the album name by removing : and / within Photos. And have relaunched osxphotos and still the folder name is wrong. Hmmm weird.

  • try simply deleting the conflicting destination folder (no need to delete anything else) and reexport to force osxphotos to go thru it again.

  • Alternatively: on the --directory option you can also convert characters with the magical template system (do read about it on the doc as it has a lot to offer!) I use it to convert / and : to . "{folder_album[/,.|:,.]}"

Hope it helps.

from osxphotos.

mikekenyon99 avatar mikekenyon99 commented on July 2, 2024

Your first bullet point is correct - that is what is happening.

I did try what you said - I deleted the folder, and then re-exported but it has come back. It's almost like OSXPhotos is caching it. However, your suggestion of the magical template system is a good one. Though that feels like a work-around not a solution.

Much appreciated 👍

from osxphotos.

RhetTbull avatar RhetTbull commented on July 2, 2024

I just tried to re-create this and could not. Here's what I did:

Create an album with a "/" in the name: "Test/Album"
Export photos
Album is created with a "/" in the name and photo exported: "Test/Album"
Deleted the folder "Test/Album" in Finder
Replaced the "/" with "-" in Photos: "Test-Photo"
Exported again with --update
Photos in the album were now exported to "Test-Album". The original album was not re-created.

It's almost like OSXPhotos is caching it.

osxphotos does not cache the album name. It does keep a record of every file exported in the export database (.osxphotos_export.db in the export folder) but this is used to match exported photos to the correct photo in Photos. Information such as the correct folder name is created at the time of export from the data in Photos, not the export database.

Are you sure there isn't a second album with the uncorrected name in Photos?

It generates this error, note that it puts. colon (:) not the actual offending character:

Note that it's actually osxphotos not OneDrive that put a colon in instead of a slash. In the macOS filesystem "/" is used to separate folders and while it's possible to create a file with a "/" in it, this is ill-advised and will make the file very difficult to work with using normal command line tools. osxphotos instead changes all "/" in a file name to ":". The Finder will automatically display these as "/" even though on disk, they're actually stored as ":" (this is a throwback to macOS Classic which used ":" to separate folders).

from osxphotos.

mikekenyon99 avatar mikekenyon99 commented on July 2, 2024

Hi - thanks for update. In that case I'm not sure what to do then. I'll double check my iCloud photo albums.

from osxphotos.

RhetTbull avatar RhetTbull commented on July 2, 2024

If you want to exclude shared albums from the export you can use --not-shared

from osxphotos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.