### chownrSync(p, uid, gid): void Source: https://isaacs.github.io/chownr/functions/chownrSync.html Synchronously changes the owner and group of a file or directory. This function takes a path string, a user ID number, and a group ID number, and returns void. ```APIDOC ## chownrSync(p, uid, gid): void ### Description Synchronously changes the owner and group of a file or directory. ### Method Function ### Signature chownrSync(p: string, uid: number, gid: number): void ### Parameters - **p** (string) - Required - The path to the file or directory. - **uid** (number) - Required - The user ID to set as owner. - **gid** (number) - Required - The group ID to set as group. ### Returns void ``` -------------------------------- ### chownr(p, uid, gid, cb) Source: https://isaacs.github.io/chownr/functions/chownr.html Changes the ownership of a file or directory. The callback is invoked with an optional error if the operation fails. ```APIDOC ## chownr(p, uid, gid, cb) ### Description Changes the ownership of a file or directory to the specified user and group IDs. ### Method Function call ### Signature chownr(p, uid, gid, cb): void ### Parameters - **p** (string) - Required - The path to the file or directory. - **uid** (number) - Required - The user ID to set as owner. - **gid** (number) - Required - The group ID to set as owner. - **cb** (function) - Required - Callback function invoked after the operation. Receives an optional error parameter. - **er** (unknown) - Optional - Error object if the operation failed. ### Returns void ### Callback Parameters - **er** (unknown) - Optional - Error object if the operation failed. ### Callback Returns any ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.