2018-07-13 05:17:08 +08:00
|
|
|
/* filesystem.h
|
|
|
|
|
2023-06-20 03:57:14 +08:00
|
|
|
Copyright (c) 2023, Nikolaj Schlej. All rights reserved.
|
2018-07-13 05:17:08 +08:00
|
|
|
This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FILESYSTEM_H
|
|
|
|
#define FILESYSTEM_H
|
|
|
|
|
|
|
|
#include "basetypes.h"
|
|
|
|
#include "ustring.h"
|
2018-10-08 17:58:12 +08:00
|
|
|
#include "ubytearray.h"
|
2018-07-13 05:17:08 +08:00
|
|
|
|
2023-06-20 03:57:14 +08:00
|
|
|
bool isExistOnFs(const UString& path);
|
|
|
|
bool makeDirectory(const UString& dir);
|
|
|
|
bool changeDirectory(const UString& dir);
|
|
|
|
void removeDirectory(const UString& dir);
|
|
|
|
UString getAbsPath(const UString& path);
|
|
|
|
USTATUS readFileIntoBuffer(const UString& inPath, UByteArray& buf);
|
2018-10-08 17:58:12 +08:00
|
|
|
|
2018-07-13 05:17:08 +08:00
|
|
|
#endif
|