Groups | Search | Server Info | Login | Register


Groups > comp.lang.awk > #9931

Re: isexist(): filepath not exist/or file/or folder

Path csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From Ed Morton <mortonspam@gmail.com>
Newsgroups comp.lang.awk
Subject Re: isexist(): filepath not exist/or file/or folder
Date Mon, 31 Mar 2025 19:26:35 -0500
Organization A noiseless patient Spider
Lines 11
Message-ID <vsfbrr$1l0un$1@dont-email.me> (permalink)
References <67ea910e$0$711$14726298@news.sunsite.dk>
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Tue, 01 Apr 2025 02:26:35 +0200 (CEST)
Injection-Info dont-email.me; posting-host="9e99a20c585ab090079d9a24911b356e"; logging-data="1737687"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cAT0gAJs80OE9evzwCkfI"
User-Agent Mozilla Thunderbird
Cancel-Lock sha1:p6cGlxjMmP0dtVE8ABm3tWvN8DM=
X-Antivirus-Status Clean
Content-Language en-US
X-Antivirus Avast (VPS 250331-6, 3/31/2025), Outbound message
In-Reply-To <67ea910e$0$711$14726298@news.sunsite.dk>
Xref csiph.com comp.lang.awk:9931

Show key headers only | View raw


On 3/31/2025 7:56 AM, digi_cs wrote:
> Hi Everyone!
> 
> Let me introduce isexist() function to those who work extensively with the file system while programming in gawk. This function provides a fast way to check whether a path exists and what it points to: a file or a folder.

I haven't had a need for this personally but can't we already do that 
and more with the `stat` function from the `filefuncs` extension 
described at 
https://www.gnu.org/software/gawk/manual/gawk.html#Extension-Example?

	Ed.

Back to comp.lang.awk | Previous | NextPrevious in thread | Find similar


Thread

isexist(): filepath not exist/or file/or folder "digi_cs" <cosmogen@gmail.com> - 2025-03-31 15:56 +0300
  Re: isexist(): filepath not exist/or file/or folder gazelle@shell.xmission.com (Kenny McCormack) - 2025-03-31 13:49 +0000
  Re: isexist(): filepath not exist/or file/or folder Ed Morton <mortonspam@gmail.com> - 2025-03-31 19:26 -0500

csiph-web