From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Hudson Subject: Re: org-mode - export as folder structure possible? Date: Thu, 17 Nov 2016 08:16:35 +0000 Message-ID: References: <823beaec-c9d3-d3c7-bc81-a99d33462574@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7HsQ-0004Vm-F9 for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 03:16:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7HsP-00013q-Fl for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 03:16:58 -0500 Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]:35910) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7HsP-00012f-7d for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 03:16:57 -0500 Received: by mail-vk0-x230.google.com with SMTP id p9so135685844vkd.3 for ; Thu, 17 Nov 2016 00:16:57 -0800 (PST) In-Reply-To: <823beaec-c9d3-d3c7-bc81-a99d33462574@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: mcg Cc: emacs orgmode-mailinglist Have a look at the docstring for the function `org-element-map'. On 17 November 2016 at 00:00, mcg wrote: > Hello, > > I need to create a rather complex folder structure. > It is OK to create that in dired but I think even nicer and faster it would > be to create an org-mode outline which then exports this folder structure to > the org document's directory. > > This could even be extended to create blank files with file extension within > the directory - maybe communicated to the exporter with list items. > Can the org-mode exporter be used or easily programmed for this kind of > application? > > * Folder > - Registry.xls > - document.doc > > ** Subfolder > > *** Subsubfolder > - some_document.txt > > ** Subfolder 2 > > * Another folder > > ** another one > - document.file_extension > - ListB.xlsx > > > With that functionality I could really thoroughly create a decent folder > structure. With many people working on the windows server it becomes quite > chaotic. > Thanks in advance for any answer. > > -- Phil Hudson http://hudson-it.ddns.net Pretty Good Privacy (PGP) ID: 0x887DCA63