Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gFileHasPrefix

gFileHasPrefix


Description

Checks whether file has the prefix specified by prefix. In other word, if the names of inital elements of files pathname match prefix. Only full pathname elements are matched, so a path like /foo is not considered a prefix of /foobar, only of /foo/bar.

Usage

gFileHasPrefix(object, descendant)

Arguments

object

input GFile.

descendant

input GFile.

Details

This call does no i/o, as it works purely on names. As such it can sometimes return FALSE even if file is inside a prefix (from a filesystem point of view), because the prefix of file is an alias of prefix.

Value

[logical] TRUE if the files's parent, grandparent, etc is prefix. FALSE otherwise.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.