Rename with a short sha1

Hi There

I wonder if there is a way to rename with a short hashcode in the new filename
More specifically a sha1 truncated to 7 digits , as the git standard

Currently my rename pattern is

{createddate|D#yyyyMMdd}-{createdtime|T#HHmm}-{shasum}

and I was thinking about something like

{createddate|D#yyyyMMdd}-{createdtime|T#HHmm}-{shasum|#8}

that seems to pad but not truncate

Dunno if it really is available ?

{createddate|D#yyyyMMdd}-{createdtime|T#HHmm}-{shasum|#1-8}

Try

{createddate|D#yyyyMMdd}-{createdtime|T#HHmm}-{=Left(shasum, 8)=}

Thanks for your feedback

I finally use

{=DatePart(datetaken,"yyyMMdd-HHmm")=}-{=Left(shasum,8)=}

Since it was the datetaken field that is the one necessary /
i can get datetaken to accept a format

--
Mentioned there

  • Evaluator Grammar
  • Evaluator Function