Commit 1b429e11 authored by zecke@webkit.org's avatar zecke@webkit.org

[GTK] Implement WebCore::directoryName

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ccebbb47
2009-05-05 Holger Hans Peter Freyther <zecke@selfish.org>
Reviewed by Xan Lopez and Gustavo Noronha.
Implement WebCore::directoryName for Gtk+.
* platform/gtk/FileSystemGtk.cpp:
(WebCore::directoryName):
2009-05-05 Eric Seidel <eric@webkit.org>
Reviewed by Adam Roben.
/*
* Copyright (C) 2007 Holger Hans Peter Freyther
* Copyright (C) 2007, 2009 Holger Hans Peter Freyther
* Copyright (C) 2008 Collabora, Ltd.
* Copyright (C) 2008 Apple Inc. All rights reserved.
*
......@@ -22,8 +22,8 @@
#include "config.h"
#include "FileSystem.h"
#include "GOwnPtr.h"
#include "guriescape.h"
#include "NotImplemented.h"
#include "PlatformString.h"
#include "CString.h"
......@@ -191,8 +191,10 @@ String pathGetFileName(const String& pathName)
String directoryName(const String& path)
{
notImplemented();
return String();
/* No null checking needed */
GOwnPtr<char> tmpFilename(filenameFromString(path));
GOwnPtr<char> dirname(g_path_get_dirname(tmpFilename.get()));
return String::fromUTF8(dirname.get());
}
Vector<String> listDirectory(const String& path, const String& filter)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment