Garry's Mod Wiki

file.Rename

boolean file.Rename( string orignalFileName, string targetFileName )

Description

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

This function is constrained to the data/ folder.

Arguments

1 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.

2 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

1 boolean
True on success, false otherwise.

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 3
Generate Html 5
SaveChanges (1) 8
Render Body 0
Render Sidebar 11