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: References: <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 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: 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 ) 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 ) 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 ) 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 ) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128205 Archived-At: > Sent: Tuesday, February 23, 2021 at 4:22 AM > From: "TRS-80" > 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 > >