From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: skeleton files in sub-directories Date: Sun, 26 May 2019 21:46:10 +0200 Message-ID: <87pno5m22l.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUz5w-0003WD-Mr for help-guix@gnu.org; Sun, 26 May 2019 15:46:15 -0400 In-Reply-To: (Reza Alizadeh Majd's message of "Sun, 26 May 2019 14:38:03 +0430") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Reza Alizadeh Majd Cc: help-guix@gnu.org Hi, "Reza Alizadeh Majd" skribis: > the problem is that some of these skeletons are located in sub-directorie= s, for=20 > example `~/.local/share/foo/bar.cfg`. and when I run `guix system reconfi= gure` > I receive errors about missing parent directory (`~/.local/share/foo` in = this example). > > is there any way to create parent directories before copying the skeleton= files?=20 I think you can do something like: (define dot-config (compute-file "dot-config-skeleton" #~(begin (mkdir #$output) (mkdir (string-append #$output "/guix")) =E2=80=A6))) and then add it in the list of skeletons like so: `(=E2=80=A6 (".config" ,dot-config)) Does that make sense? Ludo=E2=80=99.