607eea1402
My change that introduced a platform directory shared between vm and bin runtime components did not correctly update gypi files. BUG= TEST= Review URL: http://codereview.chromium.org//9124030 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3155 260f80e4-7a28-3924-810f-c04153c831b5
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef BIN_DIRECTORY_H_
|
|
#define BIN_DIRECTORY_H_
|
|
|
|
#include "bin/builtin.h"
|
|
#include "platform/globals.h"
|
|
|
|
class Directory {
|
|
public:
|
|
enum ExistsResult {
|
|
UNKNOWN,
|
|
EXISTS,
|
|
DOES_NOT_EXIST
|
|
};
|
|
|
|
static void List(const char* path,
|
|
bool recursive,
|
|
Dart_Port dir_port,
|
|
Dart_Port file_port,
|
|
Dart_Port done_port,
|
|
Dart_Port error_port);
|
|
|
|
static ExistsResult Exists(const char* path);
|
|
|
|
static bool Create(const char* path);
|
|
|
|
static int CreateTemp(const char* const_template,
|
|
char** path,
|
|
char* os_error_message,
|
|
int os_error_message_len);
|
|
|
|
static bool Delete(const char* path);
|
|
|
|
DISALLOW_ALLOCATION();
|
|
DISALLOW_IMPLICIT_CONSTRUCTORS(Directory);
|
|
};
|
|
|
|
#endif // BIN_DIRECTORY_H_
|