summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-04-28 17:24:35 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-04-28 17:24:35 +0200
commit53ac87ac9c27af39df062516aab5dce880af107a (patch)
tree6074a64724348e9c19faaef983d646ad028b57ac /apt-pkg/contrib/fileutl.h
parenta298a1dc595c548e6c10b48b8e69d987e5be1c42 (diff)
add flAbsPath() as a wrapper to realpath()
Diffstat (limited to 'apt-pkg/contrib/fileutl.h')
-rw-r--r--apt-pkg/contrib/fileutl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h
index cc1a98eae..ab944071a 100644
--- a/apt-pkg/contrib/fileutl.h
+++ b/apt-pkg/contrib/fileutl.h
@@ -198,6 +198,10 @@ std::string flNoLink(std::string File);
std::string flExtension(std::string File);
std::string flCombine(std::string Dir,std::string File);
+/** \brief Takes a file path and returns the absolute path
+ */
+std::string flAbsPath(std::string File);
+
// simple c++ glob
std::vector<std::string> Glob(std::string const &pattern, int flags=0);