Skip to content

UOperatingSystemDirectory

#include <OperatingSystemSimulator/Public/Core/OperatingSystemDirectory.h>
class UOperatingSystemDirectory

Defined in OperatingSystemDirectory.h:23

Inherits: UObject, IOperatingSystemExplorerInterface Subclassed by: UOperatingSystemDir_Desktop, UOperatingSystemDir_Documents, UOperatingSystemDir_Downloads, UOperatingSystemDir_Music, UOperatingSystemDir_Pictures, UOperatingSystemDir_Users, UOperatingSystemDir_Videos, UOperatingSystemRootDirectory

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemDirectory["UOperatingSystemDirectory"]
  class UObject["UObject"]
  UObject <|-- UOperatingSystemDirectory
  class IOperatingSystemExplorerInterface["IOperatingSystemExplorerInterface"]
  IOperatingSystemExplorerInterface <|-- UOperatingSystemDirectory
  class UOperatingSystemDir_Desktop["UOperatingSystemDir_Desktop"]
  UOperatingSystemDirectory <|-- UOperatingSystemDir_Desktop
  class UOperatingSystemDir_Documents["UOperatingSystemDir_Documents"]
  UOperatingSystemDirectory <|-- UOperatingSystemDir_Documents
  class UOperatingSystemDir_Downloads["UOperatingSystemDir_Downloads"]
  UOperatingSystemDirectory <|-- UOperatingSystemDir_Downloads
  class UOperatingSystemDir_Music["UOperatingSystemDir_Music"]
  UOperatingSystemDirectory <|-- UOperatingSystemDir_Music
  class UOperatingSystemDir_Pictures["UOperatingSystemDir_Pictures"]
  UOperatingSystemDirectory <|-- UOperatingSystemDir_Pictures
  class UOperatingSystemDir_Users["UOperatingSystemDir_Users"]
  UOperatingSystemDirectory <|-- UOperatingSystemDir_Users
  class UOperatingSystemDir_Videos["UOperatingSystemDir_Videos"]
  UOperatingSystemDirectory <|-- UOperatingSystemDir_Videos
  class UOperatingSystemRootDirectory["UOperatingSystemRootDirectory"]
  UOperatingSystemDirectory <|-- UOperatingSystemRootDirectory
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemDirectory["UOperatingSystemDirectory"]
  class UOperatingSystemFile["UOperatingSystemFile"]
  UOperatingSystemDirectory *-- UOperatingSystemFile
  class UOperatingSystemDirectoriesCollection["UOperatingSystemDirectoriesCollection"]
  UOperatingSystemDirectory *-- UOperatingSystemDirectoriesCollection
  class UOperatingSystemPartition["UOperatingSystemPartition"]
  UOperatingSystemDirectory *-- UOperatingSystemPartition
  class UOperatingSystem["UOperatingSystem"]
  UOperatingSystemDirectory *-- UOperatingSystem
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemDirectory {
    +UOperatingSystemDirectory()
    +GetDirectoryName() const FText
    +IsSystemDirectory() const bool
    +GetDirectoryIconObject() const UObject *
    +GetChildDirectories() const override final TArray< UOperatingSystemDirectory() * >
    +GetParentExplorerInterface(TScriptInterface< IOperatingSystemExplorerI
    +IsPartition() const override final bool
    +GetInterfaceDisplayName() const override final FText
    +FindDirectoryByTag(const FGameplayTag DirectoryTag, const bool bool
    +GetChildDirectory(const FString &TargetChildDirectoryName, co TScriptInterface< IOperatingSystemExplor
    +GetAllFiles(const FString &WithExtension="*") const ove TArray< UOperatingSystemFile() * >
    +CanCreateNewFile() const override final bool
    +HasEnoughSpace(const FOperatingSystemSizeInMB &TestSpace)  bool
    +GetOperatingSystem() const override final UOperatingSystem() *
    +GetFullPath() const override final TOptional< FString >
    +GetInterfaceFromPath(const FString &NewPath) const override fina TScriptInterface< IOperatingSystemExplor
    +IsUnixRootDirectory() const bool
    +LoadFiles(const FOperatingSystemDirectoriesSaveLoad &
    +GetDirectoryPath() const FString
    +GetSaveData(TArray< FOperatingSystemDirectoriesSaveLoad
    +CheckForDirectoryWithTag(const FGameplayTag &TestTag, const bool bRe bool
    +CanCreateNewFolder() const bool
    +CanRename() const bool
    +GetDirectoryTag() const FGameplayTag
    +GetAs() const T *
    +GetAsConst() const const T *
    +GetChildDirectory(const FString &TargetChildDirectoryName, co T *
    +CreateDirectory(const TWeakObjectPtr< UOperatingSystemParti UOperatingSystemDirectory() *
    +CreateDirectory(const TWeakObjectPtr< UOperatingSystemParti T *
    +Name : FText
    +Tag : FGameplayTag
    +OverrideIcon : TSoftObjectPtr< UObject >
    +bCanCreateNewFolder : uint8
    +bCanCreateNewFile : uint8
    +bIsHidden : uint8
    +FileClasses : TSet< TSoftClassPtr< UOperatingSystemFil
    +ChildDirectoryCollection : TSoftObjectPtr< UOperatingSystemDirector
    +ParentDirectory : TWeakObjectPtr< UOperatingSystemDirector
    +ParentPartition : TWeakObjectPtr< UOperatingSystemPartitio
    +Files : TArray< TObjectPtr< UOperatingSystemFile
    +ChildDirectories : TArray< TObjectPtr< UOperatingSystemDire
    +ParentOS : TWeakObjectPtr< UOperatingSystem() >
    +OnValidate(FGenericError &OutError)
    +Internal_Validate(FGenericError &OutError)
    +Internal_GetDirectoryFromPathUnix(const FString &NewPath) const TScriptInterface< IOperatingSystemExplor
    +Internal_GetDirectoryFromPathNonUnix(const FString &NewPath) const TScriptInterface< IOperatingSystemExplor
  }

Documented call sites inside the plugin (3):

flowchart LR
  UOperatingSystemDirectory__CreateDirectory["UOperatingSystemDirectory::CreateDirectory"]
  UOperatingSystemNonUnix__CreateDirectoryInPath["UOperatingSystemNonUnix::CreateDirectoryInPath"]
  UOperatingSystemNonUnix__CreateDirectoryInPath --> UOperatingSystemDirectory__CreateDirectory
  UOperatingSystemUnix__CreateDirectoryInPath["UOperatingSystemUnix::CreateDirectoryInPath"]
  UOperatingSystemUnix__CreateDirectoryInPath --> UOperatingSystemDirectory__CreateDirectory
  UOperatingSystem__Internal_CreateDefaultDirectories["UOperatingSystem::Internal_CreateDefaultDirectories"]
  UOperatingSystem__Internal_CreateDefaultDirectories --> UOperatingSystemDirectory__CreateDirectory

Documented call sites inside the plugin (3):

flowchart LR
  UOperatingSystemDirectory__GetFullPath["UOperatingSystemDirectory::GetFullPath"]
  UOperatingSystemDirectory__CreateDirectory["UOperatingSystemDirectory::CreateDirectory"]
  UOperatingSystemDirectory__CreateDirectory --> UOperatingSystemDirectory__GetFullPath
  UOperatingSystemDirectory__GetDirectoryPath["UOperatingSystemDirectory::GetDirectoryPath"]
  UOperatingSystemDirectory__GetDirectoryPath --> UOperatingSystemDirectory__GetFullPath
  UOperatingSystemDirectory__LoadFiles["UOperatingSystemDirectory::LoadFiles"]
  UOperatingSystemDirectory__LoadFiles --> UOperatingSystemDirectory__GetFullPath

The UOperatingSystemDirectory class represents an operating system directory. It inherits from UObject and implements the IOperatingSystemExplorerInterface. This class provides functionalities for creating, managing, and accessing directories in an operating system.

ReturnNameDescription
UOperatingSystemDirectory
FTextGetDirectoryName constReturns the name of this directory.
boolIsSystemDirectory constChecks if the directory is classified as a system directory.
UObject *GetDirectoryIconObject constReturns the directory icon object.
TArray< UOperatingSystemDirectory * >GetChildDirectories virtual const inline override finalGet the child directories of the current operating system directory.
voidGetParentExplorerInterface virtual const override finalRetrieves the parent explorer interface of the operating system directory.
boolIsPartition virtual const inline override finalCheck if the directory is a partition. This method checks whether the directory is a partition or not.
FTextGetInterfaceDisplayName virtual const inline override finalReturns the display name of the interface. This method returns the display name of the interface as a FText object. The display name is a textual representation of the interface.
boolFindDirectoryByTag virtual const override finalFinds a directory by tag. This method searches for a directory with the specified tag within the current directory and, optionally, within its child directories recursively.
TScriptInterface< IOperatingSystemExplorerInterface >GetChildDirectory virtual const override finalRetrieves a child directory with the specified name. This method searches for a child directory with the given name in the current directory. If the child directory is found, it is returned.
TArray< UOperatingSystemFile * >GetAllFiles virtual const override finalGetAllFiles is a method that returns an array of operating system files in the directory.
boolCanCreateNewFile virtual const inline override finalDetermines whether the operating system directory can create a new file.
boolHasEnoughSpace virtual const override finalDetermines if the operating system directory has enough space to hold a given amount of data.
UOperatingSystem *GetOperatingSystem virtual const override finalReturns the operating system object associated with the directory.
TOptional< FString >GetFullPath virtual const override finalRetrieves the full path of the operating system directory. This method returns the full path of the operating system directory by traversing through its parent directories and concatenating the directory names.
TScriptInterface< IOperatingSystemExplorerInterface >GetInterfaceFromPath virtual const override finalRetrieves an interface from a specified path. This method retrieves an interface from a specified path. The path is used to locate the desired interface in the operating system.
boolIsUnixRootDirectory virtual const inlineDO NOT MODIFY THIS!
voidLoadFilesLoad the files from the provided FOperatingSystemDirectoriesSaveLoad object. This method creates UOperatingSystemFile objects for each file specified in the SaveLoad_Files array of the FOperatingSystemDirectoriesSaveLoad object and adds them to the Files array of the UOperatingSystemDirectory object. It also checks if there are any newly added file classes in the FileClasses array of the UOperatingSystemDirectory object, and creates UOperatingSystemFile objects for each newly added file class, if necessary.
FStringGetDirectoryPath constSame as GetFullPath except this removes the directory name from the path.
voidGetSaveData constRetrieves the save data for the operating system directories.
boolCheckForDirectoryWithTag constCheck if the directory has a specific tag.
boolCanCreateNewFolder const inlineChecks if the user has permission to create a new folder.
boolCanRename const inlineChecks if the directory can be renamed.
FGameplayTagGetDirectoryTag const inlineRetrieves the directory tag.
T *GetAs const inlineReturns a pointer to the current object casted to the specified type. The specified type, T, must be derived from the UOperatingSystemDirectory class.
const T *GetAsConst const inlineReturns a pointer to the current object casted to the specified type. The specified type, T, must be derived from the UOperatingSystemDirectory class.
T *GetChildDirectory virtual const inlineRetrieves a child directory with the given name.

UOperatingSystemDirectory()

const

FText GetDirectoryName() const

Defined in OperatingSystemDirectory.h:174 Returns the name of this directory.

The name of the directory as a FText object.

See also: UOperatingSystemStatics::GetSpecialDirectoryName()


const

bool IsSystemDirectory() const

Defined in OperatingSystemDirectory.h:181 Checks if the directory is classified as a system directory.

True if the directory is a system directory, false otherwise.


const

UObject * GetDirectoryIconObject() const

Defined in OperatingSystemDirectory.h:188 Returns the directory icon object.

The directory icon object.


virtual const inline override final

virtual inline TArray< UOperatingSystemDirectory * > GetChildDirectories() const override final

Defined in OperatingSystemDirectory.h:197 Get the child directories of the current operating system directory.

An array of UOperatingSystemDirectory pointers representing the child directories.


virtual const override final

virtual void GetParentExplorerInterface(TScriptInterface< IOperatingSystemExplorerInterface > & OutInterface) const override final

Defined in OperatingSystemDirectory.h:208 Retrieves the parent explorer interface of the operating system directory.

This method retrieves the parent explorer interface of the operating system directory. If the parent directory is valid, it sets the OutInterface parameter to the parent directory interface. If the parent directory is not valid, it sets the OutInterface parameter to the parent partition interface.

  • OutInterface [out] The output parameter that will be set to the parent explorer interface.

virtual const inline override final

virtual inline bool IsPartition() const override final

Defined in OperatingSystemDirectory.h:217 Check if the directory is a partition. This method checks whether the directory is a partition or not.

Returns true always.


virtual const inline override final

virtual inline FText GetInterfaceDisplayName() const override final

Defined in OperatingSystemDirectory.h:226 Returns the display name of the interface. This method returns the display name of the interface as a FText object. The display name is a textual representation of the interface.

The FText object representing the display name of the interface.


virtual const override final

virtual bool FindDirectoryByTag(const FGameplayTag DirectoryTag, const bool bRecursive, UOperatingSystemDirectory *& OutDirectory) const override final

Defined in OperatingSystemDirectory.h:238 Finds a directory by tag. This method searches for a directory with the specified tag within the current directory and, optionally, within its child directories recursively.

  • DirectoryTag The tag of the directory to find.

  • bRecursive Whether to search the child directories recursively.

  • OutDirectory A pointer to the found directory. It will be set to nullptr if no directory with the specified tag is found.

True if a directory with the specified tag is found, false otherwise.


virtual const override final

virtual TScriptInterface< IOperatingSystemExplorerInterface > GetChildDirectory(const FString & TargetChildDirectoryName, const bool bRecursive = true) const override final

Defined in OperatingSystemDirectory.h:253 Retrieves a child directory with the specified name. This method searches for a child directory with the given name in the current directory. If the child directory is found, it is returned.

  • TargetChildDirectoryName The name of the child directory to retrieve.

  • bRecursive Optional boolean parameter that specifies whether to search for the child directory recursively in all descendant directories. If set to true, the method will first check the immediate child directories of the current directory, and then recursively search in their child directories as well. If set to false, the method will only check the immediate child directories of the current directory. The default value is true.

A pointer to the child directory if found, nullptr otherwise.


virtual const override final

virtual TArray< UOperatingSystemFile * > GetAllFiles(const FString & WithExtension = "*") const override final

Defined in OperatingSystemDirectory.h:262 GetAllFiles is a method that returns an array of operating system files in the directory.

  • WithExtension The extension of files to filter. Defaults to ”*”.

An array of UOperatingSystemFile pointers that match the specified extension. If WithExtension is ”*”, ”.” or empty, all files are returned.


virtual const inline override final

virtual inline bool CanCreateNewFile() const override final

Defined in OperatingSystemDirectory.h:269 Determines whether the operating system directory can create a new file.

true if the operating system directory can create a new file, false otherwise.


virtual const override final

virtual bool HasEnoughSpace(const FOperatingSystemSizeInMB & TestSpace) const override final

Defined in OperatingSystemDirectory.h:277 Determines if the operating system directory has enough space to hold a given amount of data.

  • TestSpace The size of the data to be tested for space.

True if the directory has enough space, false otherwise.


virtual const override final

virtual UOperatingSystem * GetOperatingSystem() const override final

Defined in OperatingSystemDirectory.h:284 Returns the operating system object associated with the directory.

A pointer to the UOperatingSystem object.


virtual const override final

virtual TOptional< FString > GetFullPath() const override final

Defined in OperatingSystemDirectory.h:292 Retrieves the full path of the operating system directory. This method returns the full path of the operating system directory by traversing through its parent directories and concatenating the directory names.

The full path of the operating system directory as a string, or an empty optional if the path could not be retrieved.


virtual const override final

virtual TScriptInterface< IOperatingSystemExplorerInterface > GetInterfaceFromPath(const FString & NewPath) const override final

Defined in OperatingSystemDirectory.h:301 Retrieves an interface from a specified path. This method retrieves an interface from a specified path. The path is used to locate the desired interface in the operating system.

  • NewPath The path to the interface.

The interface requested, represented as TScriptInterface<IOperatingSystemExplorerInterface>.


virtual const inline

virtual inline bool IsUnixRootDirectory() const

Defined in OperatingSystemDirectory.h:305 DO NOT MODIFY THIS!


void LoadFiles(const FOperatingSystemDirectoriesSaveLoad & DirectoriesSaveLoad)

Defined in OperatingSystemDirectory.h:348 Load the files from the provided FOperatingSystemDirectoriesSaveLoad object. This method creates UOperatingSystemFile objects for each file specified in the SaveLoad_Files array of the FOperatingSystemDirectoriesSaveLoad object and adds them to the Files array of the UOperatingSystemDirectory object. It also checks if there are any newly added file classes in the FileClasses array of the UOperatingSystemDirectory object, and creates UOperatingSystemFile objects for each newly added file class, if necessary.

  • DirectoriesSaveLoad The FOperatingSystemDirectoriesSaveLoad object containing the files to be loaded. This object should have the SaveLoad_Files array populated with information of the files to be loaded. Each element of the SaveLoad_Files array should contain a ClassPath specifying the class of the file to be created. The ClassPath should be a valid TSoftClassPtr<UOperatingSystemFile> pointing to a UOperatingSystemFile subclass.

If the UOperatingSystemDirectory object already has UOperatingSystemFile objects in the Files array with the same file as specified in the FOperatingSystemDirectoriesSaveLoad object, they will be skipped and not re-created.

See also: UOperatingSystemDirectory, FOperatingSystemDirectoriesSaveLoad, UOperatingSystemFile


const

FString GetDirectoryPath() const

Defined in OperatingSystemDirectory.h:351 Same as GetFullPath except this removes the directory name from the path.


const

void GetSaveData(TArray< FOperatingSystemDirectoriesSaveLoad > & OutSaveData) const

Defined in OperatingSystemDirectory.h:364 Retrieves the save data for the operating system directories.

This method populates the provided array with the save data for the operating system directories. Each directory’s save data includes the path, name, and class information, as well as the save data for its child files.

  • OutSaveData The array to populate with the save data for the operating system directories. Each element of the array represents the save data for a directory. The save data includes the path, name, class information, and save data for its child files. The array is appended with the save data for all directories and their child directories recursively.

const

bool CheckForDirectoryWithTag(const FGameplayTag & TestTag, const bool bRecursive) const

Defined in OperatingSystemDirectory.h:373 Check if the directory has a specific tag.

  • TestTag The tag to check against.

  • bRecursive Whether to check recursively through child directories.

Returns true if the directory or any of its child directories have the specified tag, false otherwise.


const inline

inline bool CanCreateNewFolder() const

Defined in OperatingSystemDirectory.h:383 Checks if the user has permission to create a new folder.

This method returns a boolean value indicating whether the user has permission to create a new folder in the operating system directory.

True if the user has permission to create a new folder, false otherwise.


const inline

inline bool CanRename() const

Defined in OperatingSystemDirectory.h:390 Checks if the directory can be renamed.

true if the directory can be renamed, false otherwise.


const inline

inline FGameplayTag GetDirectoryTag() const

Defined in OperatingSystemDirectory.h:399 Retrieves the directory tag.

This method returns the gameplay tag associated with the directory.

The gameplay tag associated with the directory.


const inline

template<class T> inline T * GetAs() const

Defined in OperatingSystemDirectory.h:412 Returns a pointer to the current object casted to the specified type. The specified type, T, must be derived from the UOperatingSystemDirectory class.

  • T The type to cast the current object to.

A pointer to the current object casted to the specified type, or nullptr if the cast fails.

T parameter must be derived from UOperatingSystemDirectory. If not, compile will fail.


const inline

template<class T> inline const T * GetAsConst() const

Defined in OperatingSystemDirectory.h:422 Returns a pointer to the current object casted to the specified type. The specified type, T, must be derived from the UOperatingSystemDirectory class.

  • T The type to cast the current object to.

A pointer to the current object casted to the specified type, or nullptr if the cast fails.

T parameter must be derived from UOperatingSystemDirectory. If not, compile will fail. This returns a const object.


virtual const inline

template<class T> virtual inline T * GetChildDirectory(const FString & TargetChildDirectoryName, const bool bRecursive = true) const

Defined in OperatingSystemDirectory.h:440 Retrieves a child directory with the given name.

This method returns a pointer to a child directory within the current directory with the specified name. The child directory is represented by an object of type T, which must be derived from UOperatingSystemDirectory. The method performs a static assertion to ensure that T is derived from UOperatingSystemDirectory.

  • TargetChildDirectoryName The name of the child directory to retrieve.

  • bRecursive (optional) Determines whether the method should recursively search for the child directory within subdirectories. The default value is true.

A pointer to the child directory object, or nullptr if the child directory is not found or if T is not derived from UOperatingSystemDirectory.

T parameter must be derived from UOperatingSystemDirectory. If not, compile will fail.

ReturnNameDescription
UOperatingSystemDirectory *CreateDirectory staticCreates a new directory.
T *CreateDirectory static inlineCreates a new directory of type T in the operating system.

static

static UOperatingSystemDirectory * CreateDirectory(const TWeakObjectPtr< UOperatingSystemPartition > OwningPartition, const TWeakObjectPtr< UOperatingSystemDirectory > OwningDirectory, const TWeakObjectPtr< UOperatingSystem > OwningOS, const TSoftClassPtr< UOperatingSystemDirectory > & DirectoryClass, const bool bIsFromSaveGame, FGenericError & OutError)

Defined in OperatingSystemDirectory.h:127 Creates a new directory.

  • OwningPartition The owning partition that the directory belongs to.

  • OwningDirectory The parent directory that the directory belongs to.

  • OwningOS The operating system that the directory belongs to.

  • DirectoryClass The class of the directory.

  • bIsFromSaveGame Indicates if the directory is from a saved game.

  • OutError Error message in case of failure.

The created directory if successful, nullptr otherwise.


static inline

template<class T> static inline T * CreateDirectory(const TWeakObjectPtr< UOperatingSystemPartition > OwningPartition, const TWeakObjectPtr< UOperatingSystemDirectory > OwningDirectory, const TWeakObjectPtr< UOperatingSystem > OwningOS, const TSoftClassPtr< UOperatingSystemDirectory > & DirectoryClass, const bool bIsFromSaveGame, FGenericError & OutError)

Defined in OperatingSystemDirectory.h:154 Creates a new directory of type T in the operating system.

  • OwningPartition The owning partition of the directory.

  • OwningDirectory The parent directory of the directory being created.

  • OwningOS The operating system object that the directory will belong to.

  • DirectoryClass The class of the directory to create.

  • bIsFromSaveGame Flag indicating if the directory is being created from a save game.

  • OutError The error encountered during the creation process, if any.

A pointer to the newly created directory of type T, or nullptr if the creation failed.

Compile will fail if the T parameter is not derived from UOperatingSystemDirectory.

See also: UOperatingSystemPartition

See also: UOperatingSystemDirectory

See also: UOperatingSystem

ReturnNameDescription
FTextNameThe Name variable represents the name of a specific operating system directory.
FGameplayTagTagIndicates a certain tag for this directory.
TSoftObjectPtr< UObject >OverrideIconThe icon to be used as an override for the default icon.
uint8bCanCreateNewFolderBoolean variable indicating whether a new folder can be created in the operating system directory.
uint8bCanCreateNewFileFlag indicating whether the user is allowed to create new files in the operating system directory. If this flag is set to 1, the user can create new files; otherwise, the user is not allowed to create new files.
uint8bIsHiddenIndicates whether the file or directory is hidden.
TSet< TSoftClassPtr< UOperatingSystemFile > >FileClassesSet of file classes representing files in the operating system directory.
TSoftObjectPtr< UOperatingSystemDirectoriesCollection >ChildDirectoryCollectionStores a collection of child directories in this directory.
TWeakObjectPtr< UOperatingSystemDirectory >ParentDirectoryRepresents the parent directory that owns this directory.
TWeakObjectPtr< UOperatingSystemPartition >ParentPartitionA weak object pointer to a UOperatingSystemPartition object representing the parent partition.
TArray< TObjectPtr< UOperatingSystemFile > >FilesHolds an array of UOperatingSystemFile’s that belongs to this directory.
TArray< TObjectPtr< UOperatingSystemDirectory > >ChildDirectoriesAll the child directories that belongs to this directory.
TWeakObjectPtr< UOperatingSystem >ParentOSThe operating system that owns this directory.

FText Name

Defined in OperatingSystemDirectory.h:33 The Name variable represents the name of a specific operating system directory.


FGameplayTag Tag

Defined in OperatingSystemDirectory.h:39 Indicates a certain tag for this directory.


TSoftObjectPtr< UObject > OverrideIcon

Defined in OperatingSystemDirectory.h:45 The icon to be used as an override for the default icon.


uint8 bCanCreateNewFolder

Defined in OperatingSystemDirectory.h:56 Boolean variable indicating whether a new folder can be created in the operating system directory.

If this variable is set to true, it means that the user has permission to create a new folder in the operating system directory specified by the application. If it is set to false, the user does not have permission to create a new folder in the directory.


uint8 bCanCreateNewFile

Defined in OperatingSystemDirectory.h:63 Flag indicating whether the user is allowed to create new files in the operating system directory. If this flag is set to 1, the user can create new files; otherwise, the user is not allowed to create new files.


uint8 bIsHidden

Defined in OperatingSystemDirectory.h:72 Indicates whether the file or directory is hidden.

This variable represents a boolean flag indicating whether a file or directory is hidden in the operating system. A value of 1 indicates that the item is hidden, while a value of 0 indicates that the item is not hidden.


TSet< TSoftClassPtr< UOperatingSystemFile > > FileClasses

Defined in OperatingSystemDirectory.h:78 Set of file classes representing files in the operating system directory.


TSoftObjectPtr< UOperatingSystemDirectoriesCollection > ChildDirectoryCollection

Defined in OperatingSystemDirectory.h:84 Stores a collection of child directories in this directory.


TWeakObjectPtr< UOperatingSystemDirectory > ParentDirectory

Defined in OperatingSystemDirectory.h:90 Represents the parent directory that owns this directory.


TWeakObjectPtr< UOperatingSystemPartition > ParentPartition

Defined in OperatingSystemDirectory.h:96 A weak object pointer to a UOperatingSystemPartition object representing the parent partition.


TArray< TObjectPtr< UOperatingSystemFile > > Files

Defined in OperatingSystemDirectory.h:102 Holds an array of UOperatingSystemFile’s that belongs to this directory.


TArray< TObjectPtr< UOperatingSystemDirectory > > ChildDirectories

Defined in OperatingSystemDirectory.h:106 All the child directories that belongs to this directory.


TWeakObjectPtr< UOperatingSystem > ParentOS

Defined in OperatingSystemDirectory.h:110 The operating system that owns this directory.

ReturnNameDescription
voidOnValidate virtual inlineThis method is called to perform custom validation for the operating system directory.

virtual inline

virtual inline void OnValidate(FGenericError & OutError)

Defined in OperatingSystemDirectory.h:328 This method is called to perform custom validation for the operating system directory.

This method can be overridden in derived classes to perform custom validation logic. It is called during the process of validating the operating system directory.

  • OutError A reference to a FGenericError object which can be used to report any validation errors encountered.

See also: FGenericError

ReturnNameDescription
voidInternal_Validate
TScriptInterface< IOperatingSystemExplorerInterface >Internal_GetDirectoryFromPathUnix const
TScriptInterface< IOperatingSystemExplorerInterface >Internal_GetDirectoryFromPathNonUnix const

void Internal_Validate(FGenericError & OutError)

Defined in OperatingSystemDirectory.h:309


const

TScriptInterface< IOperatingSystemExplorerInterface > Internal_GetDirectoryFromPathUnix(const FString & NewPath) const

Defined in OperatingSystemDirectory.h:311


const

TScriptInterface< IOperatingSystemExplorerInterface > Internal_GetDirectoryFromPathNonUnix(const FString & NewPath) const

Defined in OperatingSystemDirectory.h:312