GOLF(2gg)
β¨ GOLF(2gg) β Development π
okay bestie, welcome to the GOLF(2gg) manual, Development section, and today's main character is rename-file. buckle up π
πΈ NAME πΈ
rename-file β (files)
π¦ PURPOSE π¦
Renames a file. that's it. that's the whole vibe. β¨
π SYNTAX π
rename-file <from file> to <to file> [ status <status> ]
π DESCRIPTION π
so like, rename-file will rename <from file> to <to file>. periodt. π
the <status> number it hands you back is GG_OKAY when everything slays, and GG_ERR_RENAME when it does not. no cap.
now here's the part where you gotta pay attention, bestie: <from file> and <to file> must be given with full paths β unless they're chillin' in the current working directory (peep directories for that), in which case a name all by itself is totally enough. π«Ά
and the iconic part? <from file> and <to file> can live in different directories. we love a cross-directory moment. π₯
π EXAMPLES π
Rename files:
rename-file "/home/u1/d1/f1" to "/home/u1/d2/f2" status st
if-true st equal GG_OKAY
@Rename successful. <br/>
end-if
Rename files in the current working directory:
rename-file "f1" to "f2" status st
if-true st equal GG_OKAY
@Rename successful. <br/>
end-if
π SEE ALSO π
Files
change-mode close-file copy-file delete-file file-position file-storage file-uploading lock-file open-file read-file read-line rename-file stat-file temporary-file uniq-file unlock-file write-file β and see all documentation π
and that's the whole page, bestie!! π§ this little baddie is dated $DATE and running version $VERSION, brought to you by the GOLF(2gg) manual. go rename something. ate. πβ¨
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms