[ Deprecated ( since = "vala-0.16" , replacement = "has_prefix" ) ]
[ NoWrapper ]
public abstract bool prefix_matches (File file)
Warning: prefix_matches is deprecated. Use GLib.File.has_prefix.
Checks whether file has the prefix specified by this.
In other words, if the names of initial elements of file's pathname match this. Only full
pathname elements are matched, so a path like /foo is not considered a prefix of /foobar, only of /foo/bar.
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 this (from a filesystem point of view), because the prefix of
file is an alias of this.
| this |
input File |
| file |
input File |
|
true if the |