~ubuntu-branches/ubuntu/trusty/rgtk2/trusty

« back to all changes in this revision

Viewing changes to man/gFileHasPrefix.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2010-11-03 11:35:46 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101103113546-a7fi7jdxdebp0tw1
Tags: 2.20.1-1
* New upstream release

* debian/control: Set (Build-)Depends: to current R version
* debian/control: Set Standards-Version: to current version 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\alias{gFileHasPrefix}
 
2
\name{gFileHasPrefix}
 
3
\title{gFileHasPrefix}
 
4
\description{Checks whether \code{file} has the prefix specified by \code{prefix}. In other word, 
 
5
if the names of inital elements of \code{file}s pathname match \code{prefix}.
 
6
Only full pathname elements are matched, so a path like /foo is not
 
7
considered a prefix of /foobar, only of /foo/bar.}
 
8
\usage{gFileHasPrefix(object, descendant)}
 
9
\arguments{
 
10
\item{\verb{object}}{input \code{\link{GFile}}.}
 
11
\item{\verb{descendant}}{input \code{\link{GFile}}.}
 
12
}
 
13
\details{This call does no i/o, as it works purely on names. As such it can 
 
14
sometimes return \code{FALSE} even if \code{file} is inside a \code{prefix} (from a 
 
15
filesystem point of view), because the prefix of \code{file} is an alias 
 
16
of \code{prefix}.}
 
17
\value{[logical] \code{TRUE} if the \code{files}'s parent, grandparent, etc is \code{prefix}. 
 
18
    \code{FALSE} otherwise.}
 
19
\author{Derived by RGtkGen from GTK+ documentation}
 
20
\keyword{internal}