diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-09-06 14:10:26 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-09-06 14:10:26 +0200 |
commit | 7753e4684e2b80abbed296b90f47be12b4fce8fc (patch) | |
tree | 64d1d032e4845e1870593d4c588a79c7e272bc9a /apt-pkg/contrib/fileutl.cc | |
parent | cf1cdb3328dacde829db8bbb3db4f5373ac07d61 (diff) |
rename the newly public CheckDirectory method to CreateAPTDirectoryIfNeeded
to give a better indication what this method will do if called.
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index 94d994e8b..eabaadf90 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -251,11 +251,11 @@ bool CreateDirectory(string const &Parent, string const &Path) return true; } /*}}}*/ -// CheckDirectory - ensure that the given directory exists /*{{{*/ +// CreateAPTDirectoryIfNeeded - ensure that the given directory exists /*{{{*/ // --------------------------------------------------------------------- /* a small wrapper around CreateDirectory to check if it exists and to remove the trailing "/apt/" from the parent directory if needed */ -bool CheckDirectory(string const &Parent, string const &Path) +bool CreateAPTDirectoryIfNeeded(string const &Parent, string const &Path) { if (DirectoryExists(Path) == true) return true; |