A modded EditSaber for making beat saber maps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.6 KiB

  1. // Fill out your copyright notice in the Description page of Project Settings.
  2. #pragma once
  3. #include "CoreMinimal.h"
  4. #include "Kismet/BlueprintFunctionLibrary.h"
  5. #include "PlatformFilemanager.h"
  6. #include "GenericPlatformFile.h"
  7. #include "FileManager.h"
  8. #include "BPFileIO.generated.h"
  9. /**
  10. *
  11. */
  12. UCLASS()
  13. class MEDIOCREMAPPER_API UBPFileIO : public UBlueprintFunctionLibrary
  14. {
  15. GENERATED_BODY()
  16. UFUNCTION(BlueprintCallable, Category = "File IO")
  17. static bool VerifyOrCreateDirectory(const FString& TestDir);
  18. UFUNCTION(BlueprintCallable, Category = "File IO")
  19. static bool VerifyDirectory(const FString& TestDir);
  20. UFUNCTION(BlueprintCallable, Category = "File IO")
  21. static TArray<FString> FindAllDirectories(const FString& TestDir);
  22. UFUNCTION(BlueprintCallable, Category = "File IO")
  23. static TArray<FString> FindAllFiles(const FString& TestDir);
  24. UFUNCTION(BlueprintCallable, Category = "File IO")
  25. static bool VerifyFile(const FString& TestFile);
  26. UFUNCTION(BlueprintCallable, Category = "File IO")
  27. static bool RenameOrMoveFile(const FString& InputFile, const FString& OutputFile);
  28. UFUNCTION(BlueprintCallable, Category = "File IO")
  29. static bool CopyFile(const FString& File, const FString& OutputDirectory, const FString& newName);
  30. UFUNCTION(BlueprintCallable, Category = "File IO")
  31. static bool DeleteFile(const FString& File);
  32. UFUNCTION(BlueprintCallable, Category = "File IO")
  33. static bool DeleteDirectory(const FString& Directory);
  34. UFUNCTION(BlueprintCallable, Category = "File IO")
  35. static int getFileSize(const FString& File);
  36. UFUNCTION(BlueprintCallable, Category = "File IO")
  37. static int getTimestamp(const FString& File);
  38. };