Browse Source

Moved up the theoretical file operations, because they proved to be more useful than expected.

David Piuva 3 years ago
parent
commit
58d6c2dc21
1 changed files with 10 additions and 10 deletions
  1. 10 10
      Source/DFPSR/api/fileAPI.h

+ 10 - 10
Source/DFPSR/api/fileAPI.h

@@ -206,11 +206,21 @@ namespace dsr {
 	// Post-condition: Returns the absolute parent to the given path, or U"?" if trying to leave the root or use a tilde home alias.
 	// Post-condition: Returns the absolute parent to the given path, or U"?" if trying to leave the root or use a tilde home alias.
 	String file_getAbsoluteParentFolder(const ReadableString &path);
 	String file_getAbsoluteParentFolder(const ReadableString &path);
 
 
+	// A theoretical version of file_getAbsoluteParentFolder for evaluation on a theoretical system without actually calling file_getCurrentPath or running on the given system.
+	// Path-syntax: Depends on pathSyntax argument.
+	// Post-condition: Returns the absolute parent to the given path, or U"?" if trying to leave the root or use a tilde home alias.
+	String file_getTheoreticalAbsoluteParentFolder(const ReadableString &path, const ReadableString &currentPath, PathSyntax pathSyntax);
+
 	// Gets the canonical absolute version of the path.
 	// Gets the canonical absolute version of the path.
 	// Path-syntax: According to the local computer.
 	// Path-syntax: According to the local computer.
 	// Post-condition: Returns an absolute version of the path, quickly without removing redundancy.
 	// Post-condition: Returns an absolute version of the path, quickly without removing redundancy.
 	String file_getAbsolutePath(const ReadableString &path);
 	String file_getAbsolutePath(const ReadableString &path);
 
 
+	// A theoretical version of file_getAbsolutePath for evaluation on a theoretical system without actually calling file_getCurrentPath or running on the given system.
+	// Path-syntax: Depends on pathSyntax argument.
+	// Post-condition: Returns an absolute version of the path, quickly without removing redundancy.
+	String file_getTheoreticalAbsolutePath(const ReadableString &path, const ReadableString &currentPath, PathSyntax pathSyntax IMPLICIT_PATH_SYNTAX);
+
 	// Path-syntax: According to the local computer.
 	// Path-syntax: According to the local computer.
 	// Pre-condition: filename must refer to a file so that file_getEntryType(filename) == EntryType::File.
 	// Pre-condition: filename must refer to a file so that file_getEntryType(filename) == EntryType::File.
 	// Post-condition: Returns a structure with information about the file at file_optimizePath(filename), or -1 if no such file exists.
 	// Post-condition: Returns a structure with information about the file at file_optimizePath(filename), or -1 if no such file exists.
@@ -242,16 +252,6 @@ namespace dsr {
 	// Side-effects: Creates a folder at path.
 	// Side-effects: Creates a folder at path.
 	// Post-condition: Returns true iff the operation was successful.
 	// Post-condition: Returns true iff the operation was successful.
 	bool file_createFolder(const ReadableString &path);
 	bool file_createFolder(const ReadableString &path);
-
-	// A theoretical version of file_getParentFolder for evaluation on a theoretical system without actually calling file_getCurrentPath or running on the given system.
-	// Path-syntax: Depends on pathSyntax argument.
-	// Post-condition: Returns the absolute parent to the given path, or U"?" if trying to leave the root or use a tilde home alias.
-	String file_getTheoreticalAbsoluteParentFolder(const ReadableString &path, const ReadableString &currentPath, PathSyntax pathSyntax);
-
-	// A theoretical version of for evaluation on a theoretical system without actually calling file_getCurrentPath or running on the given system.
-	// Path-syntax: Depends on pathSyntax argument.
-	// Post-condition: Returns an absolute version of the path, quickly without removing redundancy.
-	String file_getTheoreticalAbsolutePath(const ReadableString &path, const ReadableString &currentPath, PathSyntax pathSyntax IMPLICIT_PATH_SYNTAX);
 }
 }
 
 
 #endif
 #endif