Update CreateDirectory (#1813)
* Update CreateDirectory docs Add default arguments and a note about deep paths. * Update note * Add note about use_valve_fs
This commit is contained in:
		
							parent
							
								
									3100e23b87
								
							
						
					
					
						commit
						05aa3fd39d
					
				@ -575,7 +575,7 @@ native bool RemoveDir(const char[] path);
 | 
				
			|||||||
/**
 | 
					/**
 | 
				
			||||||
 * Creates a directory.
 | 
					 * Creates a directory.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * @param path          Path to create.
 | 
					 * @param path          Path to create. Note that directories are not created recursively unless use_valve_fs is used.
 | 
				
			||||||
 * @param mode          Permissions (default is o=rx,g=rx,u=rwx).  Note that folders must have
 | 
					 * @param mode          Permissions (default is o=rx,g=rx,u=rwx).  Note that folders must have
 | 
				
			||||||
 *                      the execute bit set on Linux.  On Windows, the mode is ignored.
 | 
					 *                      the execute bit set on Linux.  On Windows, the mode is ignored.
 | 
				
			||||||
 * @param use_valve_fs  If true, the Valve file system will be used instead.
 | 
					 * @param use_valve_fs  If true, the Valve file system will be used instead.
 | 
				
			||||||
@ -585,7 +585,7 @@ native bool RemoveDir(const char[] path);
 | 
				
			|||||||
 *                      In this case, mode is ignored.
 | 
					 *                      In this case, mode is ignored.
 | 
				
			||||||
 * @return              True on success, false otherwise.
 | 
					 * @return              True on success, false otherwise.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
native bool CreateDirectory(const char[] path, int mode, bool use_valve_fs=false, const char[] valve_path_id="DEFAULT_WRITE_PATH");
 | 
					native bool CreateDirectory(const char[] path, int mode=FPERM_O_READ|FPERM_O_EXEC|FPERM_G_READ|FPERM_G_EXEC|FPERM_U_READ|FPERM_U_WRITE|FPERM_U_EXEC, bool use_valve_fs=false, const char[] valve_path_id="DEFAULT_WRITE_PATH");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Changes a file or directories permissions.
 | 
					 * Changes a file or directories permissions.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user