Peper schrieb:
> Hello,
> How can i check whether i can create or overwrite a file?
You need write access on the directory for creating files and
on the file for overwriting.
> For example:
> If /etc/conf.d/net cannot be overwritten or created it return false.
Use "test" or "[" or "[[".
> Overw
On Fri, 11 Nov 2005 18:57:40 +0100 Peper <[EMAIL PROTECTED]> wrote:
> Hello,
> How can i check whether i can create or overwrite a file?
>
> For example:
> If /etc/conf.d/net cannot be overwritten or created it return false.
>
> Overwriting test would be -w /etc/conf.d/net, but how can i check if
Hi,
you can check if the directory containing the file is writable, if it isn't then you can't create a file.
Greetz
Peter
On 11/11/05, Peper <[EMAIL PROTECTED]> wrote:
Hello,How can i check whether i can create or overwrite a file?For example:If /etc/conf.d/net cannot be overwritten or created it
3 matches
Mail list logo