unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: michael-franzese@gmx.com
To: TRS-80 <lists.trs-80@isnotmyreal.name>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Deleting files
Date: Mon, 22 Feb 2021 19:37:24 +0100	[thread overview]
Message-ID: <trinity-d2e17d1d-1f53-4f3c-9b9e-937c4e7cbd96-1614019044751@3c-app-mailcom-bs09> (raw)
In-Reply-To: <6b5414d6dcdb20246c37593048366d33@isnotmyreal.name>






> Sent: Tuesday, February 23, 2021 at 4:22 AM
> From: "TRS-80" <lists.trs-80@isnotmyreal.name>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Deleting files
>
> On 2021-02-21 18:01, michael-franzese@gmx.com wrote:
> > I have two directories with files, one is the "source", the other
> > "destination".  I would like to have a script that checks file
> > in "source".  If file name and size matches that at "destination",
> > the file at "source" is deleted.  Preferably using bash.
>
> This may not be exactly what you are looking for, but there is also
> Syncthing[0], which does continual, automatic folder synchronization
> (bidirectional, or send / receive only).
>
> The reason I mention it, is because your workflow sounds vaguely
> reminiscent of how I manage my photos.
>
> I take almost all photos on my Android phone.  They are synced (more or
> less) immediately with Syncthing to my NAS at home (in reality, a small
> SBC[1] running Armbian[2]).
>
> Then nightly (automatically, via cron), I run the sortphotos Python
> script, which moves the photos from the upload/sync folder into their
> final locations in a date based folder tree with consistent filenames
> which I call the timeline[3], along with giving them consistent filename
> format.[4]
>
> After that, I am free to add descriptions, tags, etc. on top of the base
> file name.
>
> Anyway, may or not be directly relevant, just thought I would mention it
> just in case.

Will surely check it out.  I like to go through good designs.

> Cheers,
> TRS-80
>
> [0] https://syncthing.net/
> [1] Single Board Computer, see
> https://www.armbian.com/download/?device_support=Supported for examples
> [2] Debian for SBCs https://www.armbian.com/
> [3]
> https://git.sr.ht/~trs-80/ostrta-spec/tree/HEAD/Specifications.md#filesystem
> [4]
> https://git.sr.ht/~trs-80/ostrta-spec/tree/HEAD/Specifications.md#filename
>
>



      reply	other threads:[~2021-02-22 18:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-21 23:01 Deleting files michael-franzese
2021-02-21 23:08 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-21 23:15   ` michael-franzese
2021-02-22  5:19 ` Jean Louis
2021-02-22 16:22 ` TRS-80
2021-02-22 18:37   ` michael-franzese [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-d2e17d1d-1f53-4f3c-9b9e-937c4e7cbd96-1614019044751@3c-app-mailcom-bs09 \
    --to=michael-franzese@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lists.trs-80@isnotmyreal.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).