From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drJ9V-0007bV-4c for guix-patches@gnu.org; Mon, 11 Sep 2017 03:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drJ9S-0004W8-0Z for guix-patches@gnu.org; Mon, 11 Sep 2017 03:29:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51689) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drJ9R-0004W3-TQ for guix-patches@gnu.org; Mon, 11 Sep 2017 03:29:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1drJ9R-000103-NR for guix-patches@gnu.org; Mon, 11 Sep 2017 03:29:01 -0400 Subject: [bug#28281] [PATCH] gnu: Add os-prober. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170909171635.7968-1-arunisaac@systemreboot.net> <874lsa900c.fsf@gnu.org> <403302d1.ADkAAC_e-_IAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZtWIT@mailjet.com> <87k2165lry.fsf@gnu.org> <5dc91a20.AEAAPzHdNuYAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZtcxv@mailjet.com> Date: Mon, 11 Sep 2017 09:28:30 +0200 In-Reply-To: <5dc91a20.AEAAPzHdNuYAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZtcxv@mailjet.com> (Arun Isaac's message of "Mon, 11 Sep 2017 05:05:54 +0530") Message-ID: <87shftelsx.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Arun Isaac Cc: 28281@debbugs.gnu.org Hi Arun, Arun Isaac skribis: >>> I am trying to do >>> >>> cp -r /some/directory/* destination >>> >>> To do this, I used `find-files-non-recursive' to get all files in >>> /some/directory/ and applied `copy-recursively' on each one of them. >>> >>> Do you have a better way of doing this in mind? >> >> Would (copy-recursively "/some/directory" destination) work for you? > > No, it wouldn't. That would recreate /some/directory at the > destination. I only want the files inside /some/directory to be copied, > not /some/directory itself. Ah sorry. Then yeah, either =E2=80=98scandir=E2=80=99 or =E2=80=98find-fil= es=E2=80=99, whichever you find is the least cumbersome. Feel free to push something along these lines! Ludo=E2=80=99.