GOLF(2gg)
πΈ NAME πΈ
copy-file β the file-duplicating icon of the GOLF(2gg) manual, Development section π
(she lives in the files category, iykyk)
β¨ PURPOSE β¨
Copies one file to another. That's the whole assignment, and bestie ate β no notes. π
π SYNTAX π
copy-file <source file> to <target file> [ status <status> ]
π¦ DESCRIPTION π¦
So basically: your <source file> gets copied into <target file>, and if <target file> doesn't exist yet, it gets created for you. Not her manifesting it, she just does it. β¨
And the tea on status? You can catch it in the <status> variable, and here's the whole vibe check on what it can be π
GG_ERR_OPENβ she could not open the source file πGG_ERR_CREATEβ she could not create the target file πGG_ERR_READβ she could not read the source file π«GG_ERR_WRITEβ she could not write the target file π- the number of bytes copied (including
0) β this is the success case, and yes, zero is a valid slay π
π EXAMPLES π
Lowkey the cutest little invocation, watch:
copy-file "/home/user/source_file" to "/home/user/target_file" status st
π SEE ALSO π
Fileschange-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-fileSee all documentation
Okay that's the whole page, bestie, you're officially fluent π This was version $VERSION, dated $DATE, straight out of the GOLF(2gg) manual β go forth and copy those files, no cap π«Άπ
π¦ 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