OpenSiv3D  v0.6.5
C++20 framework for creative coding
FileSystem.hpp File Reference
#include "Common.hpp"
#include "String.hpp"
#include "Optional.hpp"
#include "DateTime.hpp"
#include "Array.hpp"
#include "SpecialFolder.hpp"
#include "CopyOption.hpp"
#include "PredefinedYesNo.hpp"

Namespaces

 s3d
 
 s3d::Platform
 
 s3d::FileSystem
 

Typedefs

using s3d::Platform::NativeFilePath = std::string
 

Functions

bool s3d::FileSystem::IsResourcePath (FilePathView path) noexcept
 ファイルパスがリソースのパスであるかを返します。 More...
 
bool s3d::FileSystem::Exists (FilePathView path)
 指定されたパスのファイルまたはディレクトリが存在するかを返します。 More...
 
bool s3d::FileSystem::IsDirectory (FilePathView path)
 指定したパスのディレクトリが存在するかを返します。 More...
 
bool s3d::FileSystem::IsFile (FilePathView path)
 指定したパスのファイルが存在するかを返します。 More...
 
bool s3d::FileSystem::IsResource (FilePathView path)
 指定したパスのリソースが存在するかを返します。 More...
 
FilePath s3d::FileSystem::FullPath (FilePathView path)
 絶対パスを返します。 More...
 
Platform::NativeFilePath s3d::FileSystem::NativePath (FilePathView path)
 OS ネイティブの形式で表記された絶対パスを返します。 More...
 
String s3d::FileSystem::Extension (FilePathView path)
 ファイルの拡張子(.を含まない) を小文字にして返します。 More...
 
String s3d::FileSystem::FileName (FilePathView path)
 親ディレクトリを含まずに、ファイル名を返します。 More...
 
String s3d::FileSystem::BaseName (FilePathView path)
 親ディレクトリを含まずに、拡張子を除いたファイル名を返します。 More...
 
FilePath s3d::FileSystem::ParentPath (FilePathView path, size_t level=0)
 指定したパスの親ディレクトリを返します。 More...
 
FilePath s3d::FileSystem::ParentPath (FilePathView path, size_t level, FilePath &baseFullPath)
 指定したパスの親ディレクトリを返します。合わせて、渡したパスのフルパスを取得します。 More...
 
FilePath s3d::FileSystem::VolumePath (FilePathView path)
 
FilePath s3d::FileSystem::PathAppend (FilePathView lhs, FilePathView rhs)
 
bool s3d::FileSystem::IsEmptyDirectory (FilePathView path)
 指定したパスが空のディレクトリであるかを返します。 More...
 
int64 s3d::FileSystem::Size (FilePathView path)
 指定したファイルやディレクトリのサイズを返します。 More...
 
int64 s3d::FileSystem::FileSize (FilePathView path)
 ファイルのサイズを返します。 More...
 
Optional< DateTime > s3d::FileSystem::CreationTime (FilePathView path)
 ファイルの作成日時を取得します。 More...
 
Optional< DateTime > s3d::FileSystem::WriteTime (FilePathView path)
 ファイルの最終更新日時を取得します。 More...
 
Optional< DateTime > s3d::FileSystem::AccessTime (FilePathView path)
 ファイルの最終アクセス日時を取得します。 More...
 
Array< FilePath > s3d::FileSystem::DirectoryContents (FilePathView path, Recursive recursive=Recursive::Yes)
 指定したディレクトリの中身(パス)を取得します。 More...
 
const FilePath & s3d::FileSystem::InitialDirectory () noexcept
 実行ファイルを起動したディレクトリを返します。 More...
 
const FilePath & s3d::FileSystem::ModulePath () noexcept
 実行ファイルのフルパスを返します。 More...
 
FilePath s3d::FileSystem::CurrentDirectory ()
 現在のカレントディレクトリを返します。 More...
 
bool s3d::FileSystem::ChangeCurrentDirectory (FilePathView path)
 カレントディレクトリを変更します。 More...
 
const FilePath & s3d::FileSystem::GetFolderPath (SpecialFolder folder)
 特殊フォルダのパスを返します。 More...
 
FilePath s3d::FileSystem::TemporaryDirectoryPath ()
 一時ファイルの保存に使えるフォルダのパスを返します。 More...
 
FilePath s3d::FileSystem::UniqueFilePath (FilePathView directory=TemporaryDirectoryPath())
 一時ファイル用に使えるファイルパスを返します。 More...
 
FilePath s3d::FileSystem::RelativePath (FilePathView path, FilePathView start=CurrentDirectory())
 相対パスを作成して返します。 More...
 
bool s3d::FileSystem::CreateDirectories (FilePathView path)
 ディレクトリを作成します。 More...
 
bool s3d::FileSystem::CreateParentDirectories (FilePathView path)
 指定したパスの親ディレクトリを作成します。 More...
 
bool s3d::FileSystem::Copy (FilePathView from, FilePathView to, CopyOption copyOption=CopyOption::Default)
 指定したファイルまたはディレクトリをコピーします。 More...
 
bool s3d::FileSystem::Remove (FilePathView path, AllowUndo allowUndo=AllowUndo::No)
 指定したファイルまたはディレクトリを削除します。 More...
 
bool s3d::FileSystem::RemoveContents (FilePathView path, AllowUndo allowUndo=AllowUndo::No)
 指定したディレクトリの中身を削除します。 More...
 
bool s3d::FileSystem::Rename (FilePathView from, FilePathView to)
 指定したファイルまたはディレクトリをリネームします。 More...