file.Rename

From Garry's Mod
Jump to: navigation, search
 file.Rename( )

Contents

Description

Attempts to rename a file with the given name to another given name.

This function is constrained to the data/ folder.

Arguments

string orignalFileName

The original file or folder name. See file.Write for details on filename restrictions when writing to files.

This argument will be forced lowercase.

Arguments

string targetFileName

The target file or folder name. See file.Write for details on filename restrictions when writing to files.

This argument will be forced lowercase.

Returns

boolean

True on success, false otherwise.
Personal tools
Navigation