|
History |
.............................................................................. ..............................................................................
== ==
PRINT Access("data/img/myImage.png", gb.Write) PRINT Access("data/img/myImage.png", gb.Write)
-- --
False ' Even after performing: <b>chmod 777 "PathToMyProject/img/myImage.png"< False ' Even after performing: chmod 777 "PathToMyProject/img/myImage.png"
== ==
} }
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
== ==
PRINT Access("data/img/myImage.png", gb.Write) PRINT Access("data/img/myImage.png", gb.Write)
-- --
False ' Even after performing: *chmod 777 "PathToMyProject/img/myImage.png"* False ' Even after performing: <b>chmod 777 "PathToMyProject/img/myImage.png"<
== ==
} }
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
Returns [/lang/true] if the file specified by _Path_ is accessible by the mode Returns [/lang/true] if the file specified by _Path_ is accessible by the mode
If the value of _Mode_ is: If the value of _Mode_ is:
* [../../comp/gb/gb].[comp/gb/gb/read], then returns [/lang/true] if the file * [../../comp/gb/gb/read|gb.Read], then returns [/lang/true] if the file can b
* [../../comp/gb/gb].[comp/gb/gb/write], then returns [/lang/true] if the file * [../../comp/gb/gb/write|gb.Write], then returns [/lang/true] if the file can
* [../../comp/gb/gb].[comp/gb/gb/exec], then returns [/lang/true] if the file * [../../comp/gb/gb/exec|gb.Exec], then returns [/lang/true] if the file can b
The previous flags can be combined with the [/lang/or] operator. The previous flags can be combined with the [/lang/or] operator.
* [../../comp/gb/gb].[comp/gb/gb/read], is the default behavior when the optio * gb.Read, is the default behavior when the optional argument _Mode_ is not sp
For a directory, the execution flag means that the directory may be browsed. For a directory, the execution flag means that the directory may be browsed.
{example {example
PRINT Access("/home/benoit", gb.Write OR gb.Exec) PRINT Access("/home/benoit", gb.Write OR gb.Exec)
<hr>True --
True
} }
{example {example
.............................................................................. ..............................................................................
PRINT sPath; " "; Access(sPath) PRINT sPath; " "; Access(sPath)
END END
<hr>/root/bin RW False --
/root/bin RW False
/root/bin R True /root/bin R True
/root/bin W False /root/bin W False
/root/bin True /root/bin True
} }
{warning {warning
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
Here is the reason: when making the executable, all project files are put insi
Use temporary files or create a special directory (dotfile) in the current use
== ==
PRINT Access("data/img/myImage.png", gb.Write) PRINT Access("data/img/myImage.png", gb.Write)
<hr>False ' Even after performing: <b>chmod 777 "PathToMyProject/img/myImage.p --
False ' Even after performing: *chmod 777 "PathToMyProject/img/myImage.png"*
== ==
} }
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
} }
{warning {warning
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
== ==
PRINT Access("data/img/myImage.png", gb.Write) PRINT Access("data/img/myImage.png", gb.Write)
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
== ==
PRINT Access("data/img/myImage.png", gb.Write) PRINT Access("data/img/myImage.png", gb.Write)
<hr>False <hr>False ' Even after performing: <b>chmod 777 "PathToMyProject/img/myImage.p
<hr>Even after performing: <b>chmod 777 "PathToMyProject/img/myImage.png"</b>
== ==
} }
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
{warning {warning
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
}
{example ==
PRINT Access("data/img/myImage.png", gb.Write) PRINT Access("data/img/myImage.png", gb.Write)
<hr>False <hr>False
<hr>Even after performing: <b>chmod 777 "PathToMyProject/img/myImage.png"</b> <hr>Even after performing: <b>chmod 777 "PathToMyProject/img/myImage.png"</b>
==
} }
.............................................................................. ..............................................................................
.............................................................................. .............................................................................. The previous flags can be combined with the [/lang/or] operator. The previous flags can be combined with the [/lang/or] operator. * [../../comp/gb/gb].[comp/gb/gb/read], is the default behavior when the optio * [../../comp/gb/gb].[comp/gb/gb/read], is the default behavior when the optio For a directory, the execution flag means that the directory may be browsed. For a directory, the execution flag means that the directory may be browsed. .............................................................................. ..............................................................................
{syntax {syntax
_Accessible_ *= Access (* _Path_ [ *,* _Mode_ ] *) AS Boolean* _Accessible_ *= Access (* _Path_ *AS String* [ *,* _Mode_ *AS Integer* ] *) AS
} }
Returns [/lang/true] if the file specified by _Path_ is accessible by the mode Returns [/lang/true] if the file specified by _Path_ is accessible by the mode
.............................................................................. ..............................................................................
.............................................................................. .............................................................................. Returns [/lang/true] if the file specified by _Path_ is accessible by the mode Returns [/lang/true] if the file specified by _Path_ is accessible by the mode If the value of _Mode_ is: If the value of _Mode_ is: * [../../comp/gb/gb].[comp/gb/gb/read], then returns if the file can be read. * [../../comp/gb/gb].[comp/gb/gb/read], then returns [/lang/true] if the file * [../../comp/gb/gb].[comp/gb/gb/write], then returns if the file can be writt * [../../comp/gb/gb].[comp/gb/gb/write], then returns [/lang/true] if the file * [../../comp/gb/gb].[comp/gb/gb/exec], then returns if the file can be execut * [../../comp/gb/gb].[comp/gb/gb/exec], then returns [/lang/true] if the file The previous flags can be combined with the [/lang/or] operator. The previous flags can be combined with the [/lang/or] operator. .............................................................................. ..............................................................................
{syntax {syntax
_Accessible_ *= Access (* _Path_ [ *,* _Mode_ ] *)* AS Boolean _Accessible_ *= Access (* _Path_ [ *,* _Mode_ ] *) AS Boolean*
} }
Returns [/lang/true] if the file specified by _Path_ is accessible by the mode Returns [/lang/true] if the file specified by _Path_ is accessible by the mode
If the value of _Mode_ is: If the value of _Mode_ is:
* [../../comp/gb/gb].[comp/gb/gb/read], then returns if the file can be read. * [../../comp/gb/gb].[comp/gb/gb/read], then returns if the file can be read.
* [../../comp/gb/gb].[comp/gb/gb/write] then returns if the file can be writte * [../../comp/gb/gb].[comp/gb/gb/write], then returns if the file can be writt
* [../../comp/gb/gb].[comp/gb/gb/exec], then returns if the file can be execut * [../../comp/gb/gb].[comp/gb/gb/exec], then returns if the file can be execut
The previous flags can be combined with the [/lang/or] operator. The previous flags can be combined with the [/lang/or] operator.
.............................................................................. ..............................................................................
PRINT sPath; " "; Access(sPath) PRINT sPath; " "; Access(sPath)
END END
<hr>/root/bin RW False
<hr>
/root/bin RW False
/root/bin R True /root/bin R True
/root/bin W False /root/bin W False
/root/bin True /root/bin True
.............................................................................. ..............................................................................
{syntax {syntax
_Accessible_ *= Access (* _Path_ [ *,* _Mode_ ] *)* _Accessible_ *= Access (* _Path_ [ *,* _Mode_ ] *)* AS Boolean
} }
Returns if the file specified by _Path_ is accessible. Returns [/lang/true] if the file specified by _Path_ is accessible by the mode
If the value of _Mode_ is: If the value of _Mode_ is:
* [../../comp/gb/gb].[comp/gb/gb/read], then returns if the file can be read. * [../../comp/gb/gb].[comp/gb/gb/read], then returns if the file can be read.
.............................................................................. ..............................................................................
<hr>True <hr>True
} }
{example
{example
PRINT Access("/root", gb.Write) PUBLIC SUB Button1_Click()
<hr>False DIM sPath AS String
sPath = "/root/bin"
PRINT sPath; " RW "; Access(sPath, gb.Read OR gb.write)
PRINT sPath; " R "; Access(sPath, gb.Read)
PRINT sPath; " W "; Access(sPath, gb.write)
PRINT sPath; " "; Access(sPath)
END
<hr>
/root/bin RW False
/root/bin R True
/root/bin W False
/root/bin True
} }
{warning {warning
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
} }
{example {example
PRINT Access("img/myImage.png", gb.Write) PRINT Access("data/img/myImage.png", gb.Write)
<hr>False <hr>False
<hr>Even after performing: <b>chmod 777 "PathToMyProject/img/myImage.png"</b> <hr>Even after performing: <b>chmod 777 "PathToMyProject/img/myImage.png"</b>
} }
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
{example {example
PRINT Access("img/myImage.png", gb.Write) PRINT Access("img/myImage.png", gb.Write)
<hr>False <hr>False
<hr>Even after performing <i>chmod 777 "PathToMyProject/img/myImage.png"</i> <hr>Even after performing: <b>chmod 777 "PathToMyProject/img/myImage.png"</b>
} }
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
{example {example
PRINT Access("img/myImage.png", gb.Write) PRINT Access("img/myImage.png", gb.Write)
<hr>False <hr>False
<hr>*** Even after performing chmod 777 "PathToMyProject/img/myImage.png" *** <hr>Even after performing <i>chmod 777 "PathToMyProject/img/myImage.png"</i>
} }
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
{example {example
PRINT Access("img/myImage.png", gb.Write) PRINT Access("img/myImage.png", gb.Write)
<hr>False <hr>False
<hr>*** Even after performing chmod 777 "PathToMyProject/img/myImage.png" ***
} }
Even after /chmod 777 "PathToMyProject\/img\/myImage.png"/
{seealso {seealso
[cat/file] [cat/file]
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
PRINT Access("img/myImage.png", gb.Write) PRINT Access("img/myImage.png", gb.Write)
<hr>False <hr>False
} }
/Even after $>chmod 777 PathToMyProject\/img\/myImage.png)/ Even after /chmod 777 "PathToMyProject\/img\/myImage.png"/
{seealso {seealso
[cat/file] [cat/file]
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
} }
{example {example
PRINT Access("img/myImage.png", gb.Write) PRINT Access("img/myImage.png", gb.Write)
<hr>False /(even after $>chmod 777 PathToMyProject\/img\/myImage.png)/ <hr>False
} }
/Even after $>chmod 777 PathToMyProject\/img\/myImage.png)/
{seealso {seealso
[cat/file] [cat/file]
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
} }
{example {example
PRINT Access("img/myImage.png", gb.Write) PRINT Access("img/myImage.png", gb.Write)
<hr>False <hr>False /(even after $>chmod 777 PathToMyProject\/img\/myImage.png)/
} }
{seealso {seealso
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
PRINT Access("/root", gb.Write) PRINT Access("/root", gb.Write)
<hr>False <hr>False
} }
{example
PRINT Access("img/myImage.png", gb.Write)
<hr>False
}
{warning {warning
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
} }
{example
PRINT Access("img/myImage.png", gb.Write)
<hr>False
}
{seealso {seealso
[cat/file] [cat/file]
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
PRINT Access("/root", gb.Write) PRINT Access("/root", gb.Write)
<hr>False <hr>False
} }
{example
PRINT Access("img/myImage.png", gb.Write)
<hr>False
}
{warning {warning
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
} }
{warning {warning
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
} }
{seealso {seealso
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
} }
{warning {warning
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
} }
{seealso {seealso
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
} }
{warning {warning
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
} }
{seealso {seealso
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
} }
{warning {warning
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
} }
{seealso {seealso
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
} }
{warning {warning
All files under the project directory (including any subdirectories created un All files under the project directory (including any subdirectories created un
} }
{seealso {seealso
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
<hr>False <hr>False
} }
{warning
All files under the project directory (including any subdirectories created un
}
{seealso {seealso
[cat/file] [cat/file]
} }
.............................................................................. ..............................................................................
.............................................................................. .............................................................................. The previous flags can be combined with the [/lang/or] operator. The previous flags can be combined with the [/lang/or] operator. * [../../comp/gb/gb].[comp/gb/gb/read], is the default behavior when the optio * [../../comp/gb/gb].[comp/gb/gb/read], is the default behavior when the optio _Mode_ is not specified. For a directory, the execution flag means that the directory may be browsed. For a directory, the execution flag means that the directory may be browsed. .............................................................................. ..............................................................................
.............................................................................. .............................................................................. The previous flags can be combined with the [/lang/or] operator. The previous flags can be combined with the [/lang/or] operator. * [../../comp/gb/gb].[comp/gb/gb/read], is the default behavior when the optio * [../../comp/gb/gb].[comp/gb/gb/read], is the default behavior when the optio _Mode_ is not specified. _Mode_ is not specified. For a directory, the execution flag means that the directory may be browsed. For a directory, the execution flag means that the directory may be browsed. .............................................................................. ..............................................................................
.............................................................................. .............................................................................. The previous flags can be combined with the [/lang/or] operator. The previous flags can be combined with the [/lang/or] operator. * [../../comp/gb/gb].[comp/gb/gb/read], is the default behavior is the optiona * [../../comp/gb/gb].[comp/gb/gb/read], is the default behavior when the optio _Mode_ is not specified. _Mode_ is not specified. For a directory, the execution flag means that the directory may be browsed. For a directory, the execution flag means that the directory may be browsed. .............................................................................. ..............................................................................
.............................................................................. ..............................................................................
Returns if the file specified by _Path_ is accessible. Returns if the file specified by _Path_ is accessible.
If the value of _Mode_ is: If the value of _Mode_ is:
* [../../comp/gb/gb].[comp/gb/gb/read], then returns if the file can be read. * [../../comp/gb/gb].[comp/gb/gb/read], then returns if the file can be read.
* [../../comp/gb/gb].[comp/gb/gb/write] then returns if the file can be writte * [../../comp/gb/gb].[comp/gb/gb/write] then returns if the file can be writte
* [../../comp/gb/gb].[comp/gb/gb/exec], then returns if the file can be execut * [../../comp/gb/gb].[comp/gb/gb/exec], then returns if the file can be execut
The previous flags can be combined with the [/lang/or] operator. The previous flags can be combined with the [/lang/or] operator.
* [../../comp/gb/gb].[comp/gb/gb/read], is the default behavior is the optiona
_Mode_ is not specified.
For a directory, the execution flag means that the directory may be browsed. For a directory, the execution flag means that the directory may be browsed.
{example {example
.............................................................................. ..............................................................................
{seealso {seealso
[cat/file] [cat/file]
} }
{info
What are the semantics if the _Mode_ argument, indicated as /optional/, is omi
}
.............................................................................. ..............................................................................
} }
{info {info
_
What are the semantics if the _Mode_ argument, indicated as /optional/, is omi What are the semantics if the _Mode_ argument, indicated as /optional/, is omi
} }
.............................................................................. ..............................................................................
} }
{info {info
_
What are the semantics if the _Mode_ argument, indicated as /optional/, is omi What are the semantics if the _Mode_ argument, indicated as /optional/, is omi
} }
.............................................................................. ..............................................................................
{info {info
What are the semantics if the _Mode_ argument, indicated as /optional/, is omi
} What are the semantics if the _Mode_ argument, indicated as /optional/, is omi
}
.............................................................................. ..............................................................................
[cat/file] [cat/file]
} }
{box {info
What are the semantics if the _Mode_ argument, indicated as /optional/, is omi What are the semantics if the _Mode_ argument, indicated as /optional/, is omi
} }
.............................................................................. ..............................................................................
[cat/file] [cat/file]
} }
{notice {box
What are the semantics if the _Mode_ argument, indicated as /optional/, is omi What are the semantics if the _Mode_ argument, indicated as /optional/, is omi
} }
.............................................................................. ..............................................................................
[cat/file] [cat/file]
} }
{note {notice
What are the semantics if the _Mode_ argument, indicated as /optional/, is omi What are the semantics if the _Mode_ argument, indicated as /optional/, is omi
} }
.............................................................................. ..............................................................................
The previous flags can be combined with the [/lang/or] operator. The previous flags can be combined with the [/lang/or] operator.
For a directory, the execution flag means that the directory can be browse. For a directory, the execution flag means that the directory may be browsed.
{example {example
PRINT Access("/home/benoit", gb.Write OR gb.Exec) PRINT Access("/home/benoit", gb.Write OR gb.Exec)
.............................................................................. ..............................................................................
[cat/file] [cat/file]
} }
{todo {note
What are the semantics if the _Mode_ argument, indicated as optional, is omitt What are the semantics if the _Mode_ argument, indicated as /optional/, is omi
} }