From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: michael-franzese@gmx.com
Newsgroups: gmane.emacs.help
Subject: Re: Deleting files
Date: Mon, 22 Feb 2021 19:37:24 +0100
Message-ID: <trinity-d2e17d1d-1f53-4f3c-9b9e-937c4e7cbd96-1614019044751@3c-app-mailcom-bs09>
References: <trinity-bfa3da62-97c1-43c4-9c64-f425065056af-1613948505572@3c-app-mailcom-bs09>
 <6b5414d6dcdb20246c37593048366d33@isnotmyreal.name>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="7879"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: help-gnu-emacs@gnu.org
To: TRS-80 <lists.trs-80@isnotmyreal.name>
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 22 19:41:09 2021
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1lEG8o-0001u3-Vw
	for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 19:41:06 +0100
Original-Received: from localhost ([::1]:53358 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1lEG8o-00011J-0q
	for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 13:41:06 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39602)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael-franzese@gmx.com>)
 id 1lEG64-0008V1-Ox
 for help-gnu-emacs@gnu.org; Mon, 22 Feb 2021 13:38:16 -0500
Original-Received: from mout.gmx.net ([212.227.17.20]:59133)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael-franzese@gmx.com>)
 id 1lEG62-00086i-Am
 for help-gnu-emacs@gnu.org; Mon, 22 Feb 2021 13:38:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1614019044;
 bh=OWdAJnRaWz1ZT7g8dImHCInANku0ipScUtDyP98tqnE=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References;
 b=Yrlwt1VK5mH0y4CukQoURvgBXXZPkAvqxioJgG9iBysciKKy+HhYEbJdgkA0Zboh/
 ZVETNWSKmX0D1BiECiEU0ia+iaamjn3HmIyQrL9LdB0X8wo1rx2ttMkdXBDTiGRs/3
 FH1UCBIeR6jmpsAjDoXzhUJPoZtAgqAT3Cyhtv04=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
 (3c-app-mailcom-bs09.server.lan [172.19.170.177]) (via HTTP); Mon, 22 Feb
 2021 19:37:24 +0100
Importance: normal
Sensitivity: Normal
In-Reply-To: <6b5414d6dcdb20246c37593048366d33@isnotmyreal.name>
X-UI-Message-Type: mail
X-Priority: 3
X-Provags-ID: V03:K1:ckCT464m/b+0RoL3CMDNWCA0Dt9zApSufVURbrXgoHc36QdGPNTdBLOfOZ+fTHBRdIZMO
 s7h9LaFMq8Bq0PAnSa5mRi3Xc9xNBCmIlEmNWf3sMRZIwuU/lpZWRy0VOwzECyTopOwq6ZOhhUX4
 /a3YgpgLipwpILxVvlcRURGOls6F1pr4ZtyRgMHzEHlrcuH5OCE+e/aCRK1wGrdajMgXBLQKGWgQ
 8Nx4Zz4pNUy01TaiNoXlH8r6B0IYlYP1GztPIu1NoOL4aGkJp/KmNLWwHgzcZo9ygOMmHYR8d2Yn
 pA=
X-UI-Out-Filterresults: notjunk:1;V03:K0:oOv5K/IaBOU=:HyjzLQaCKiIweQYi9iB1lo
 pUet/E79o5ZZNEe4oN5q6k/8FdDw4Q4pW/8e7Xy5/cHi6i868XpjhipMOf+R6XYgqluzouSYS
 612UNGDeH21flR/kvNmTvre1eiMN9rNpaT/+6mGT+kytYIUc/zUxOJH6vA2GY5AtRboG53gWu
 1pndQagx0d1IRJEeWXKQQg/0uIfjPSxF1kKwRlux6PeBTmLHABKMChKXI8WYJl0x5n9ujCvbn
 ga+ZUKn+jcWcBpiqFBrIcdZU5QQEjLojUQxY8dLNegYTC0Kqus1ZUWDrcWkP7J5L/I/zQR2B6
 rHlnQ1AtMsvAvgA28+IXxjyDwxs7oGr+7NprO810Z5AZD3tVuHszaCFJ9riWi8OktS3MMbkGN
 G83jfVugLmJp77BFEgeY3iJgf0qte6Z0CR7NM8S9fnZylGRN21h7JljNdON/Yuy+ADzt4ABQY
 KJLJshYSpwE7QEKpVMRlqaBxeiNs9y8EY3jfLJeWGa1kP2lIUQIWPEaNAAkET0I8jRNjN+fnR
 ztOUl1sYd8mBdM9US3u56Hs7bo4iEWHcyX5pFcDL/DWbUkfoRsSml4cEZqaiGf6EOf/1w38jn
 qzZPaNYmIAVm0=
Received-SPF: pass client-ip=212.227.17.20;
 envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "help-gnu-emacs"
 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.help:128205
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/128205>






> 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=3DSupported for example=
s
> [2] Debian for SBCs https://www.armbian.com/
> [3]
> https://git.sr.ht/~trs-80/ostrta-spec/tree/HEAD/Specifications.md#filesy=
stem
> [4]
> https://git.sr.ht/~trs-80/ostrta-spec/tree/HEAD/Specifications.md#filena=
me
>
>