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 "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);
|
2023-06-20 09:01:25 +08:00
|
|
|
bool removeDirectory(const UString& dir);
|
|
|
|
bool readFileIntoBuffer(const UString& inPath, UByteArray& buf);
|
2023-06-20 03:57:14 +08:00
|
|
|
UString getAbsPath(const UString& path);
|
2018-10-08 17:58:12 +08:00
|
|
|
|
2018-07-13 05:17:08 +08:00
|
|
|
#endif
|