Renaming images in Google Photos

How can I rename an image in Google Photos? From the web browser, I can add a description, but when I download the image, it uses the original file name. I need a real rename which changes the name such that if I download the image it retains the new name on download. I tried changing the name from Google Drive, but it did not propagate to Google Photos. Maybe it will do so eventually if I wait long enough???

I have hundreds of gigabytes of images stored in Google Photos, so downloading everything, changing the names locally, and then uploading isn’t an option. Additionally, it would be ridiculous to just change a few megabytes of actual data.

For the time being, and as a workaround, it appears that I have to disable sync on my Pixel phone until I have had a chance to rename them locally, and then sync in batches. This defeats the main feature of immediate back up of new images I take.

How can I rename images in Google Photos after I have already uploaded them without needing to do an expensive download + re-upload?

Finding and Renaming Mislabeled Duplicates

I inadvertently formatted a Time Machine backup external hard drive. I was able to recover many of the files, but not the names of those files.

All of the recovered files have generic names like “file01010101.doc”, which is not helpful. In order to know which files are duplicates, I need to compare the recovered files the originals I have on my machine, and have them renamed accordingly. Then, any files that still have a generic name must be unique and not a duplicate.

Question: How do I do this automatically? Is there a program, bash script, or Automator action that can do duplicate file finding and renaming? There’s almost 500,000 files, so doing this manually is not practical.

Automate moving and renaming files

I have files nested within multiple sub-folders. I want to move these files, one folder up the folder structure and rename the files as per its new parent folder. I will need this to be automated with a script.

Example logic

  1. Find Root folder
  2. Get contents of Subfolder of Subfolder files.
  3. Move files to its Parent folder (aka ‘Attachments’ folder)
  4. Rename files to with its current Parent folder name.
  5. Delete empty Subfolder
  6. Loop above action of Root folder folders until complete.

Example folder structure

enter image description here

Desired Result

enter image description here

I’m assuming this may require to Automate with a script but I have no idea how to do it. Can anyone help me?

issue with folder renaming in sharepoint

I don’t have access to rename folder in this sharepoint site/library while it appears to me I’ve got the ‘Full Control’ rights. I’ve sent a access request but it is sent to me Could you please help me to set the rights as I’m the admin of this library? Note: Some contents of this site have been provided with unique permissions. (inheritage was broken

bash file renaming for onedrive

I have a load of files from my teaching job that I want to put in onedrive on a regular backup. My colleagues are bad at naming files, so they need a cleanup for onedrive to take them.

The bit that I can’t get is how to select a space before a period.

I’m trying this

bash-3.2$   echo "foo bar .pdf" | tr -s " \." '\.' 

and getting this

foo.bar.pdf instead of foo bar.pdf

Does the Open and Close Principle relate to renaming a class

My coworker and I have having an argument. The Open and closed principle is defined as:

A module will be said to be open if it is still available for extension. For example, it should be possible to add fields to the data structures it contains, or new elements to the set of functions it performs. A module will be said to be closed if [it] is available for use by other modules. This assumes that the module has been given a well-defined, stable description (the interface in the sense of information hiding)

My coworker states that renaming a class (Private/Or Public) without increasing the MAJOR version violates the Open and Closed Principle.

My view is

  1. You should only increase the major version if it fully breaks functionality.
  2. Refactoring and class renaming do not fall under the open and close principle in general.

Does Renaming a class fall under the open and closed principle

After creating folder on desktop – renaming or removing needs admin privileges?

Just now I created a folder on my desktop. It had the name “untitled folder”, probably not unfamiliar to you. I wanted to change the name to something else, then got an alert that I needed admin rights. Removing the folder has the same effect.

I tried this several times, directly on the desktop and using the Finder. I checked the Info for the Desktop folder and all seemed OK. I have read and write access.

Creating a folder in the Documents-folder works normally. System is macOS 10.14 Mojave.

What is this, and how do I correct it?

git branch not renamed on remote after renaming and changing tracking branch

I have taken these steps to rename a branch:

git branch -m new-branch git push origin  --delete old-branch git push -u origin new-branch 

But when I push and then run git status, I get:

On branch new-branch Your branch is up to date with ‘origin/old-branch’.

Every google has the same instructions but I don’t appear to have change what branch is being tracked.