@@ -137,10 +137,19 @@ * @return The last status change time of the specified item */ - (OFDate*)statusChangeTimeOfItemAtPath: (OFString*)path; #ifdef OF_HAVE_CHMOD +/*! + * @brief Returns the permissions of the specified item. + * + * @param path The path to the item whose permissions should be returned + * + * @return The permissions of the specified item + */ +- (mode_t)permissionsOfItemAtPath: (OFString*)path; + /*! * @brief Changes the permissions of an item. * * This method only changes the read-only flag on Windows. * @@ -150,10 +159,21 @@ - (void)changePermissionsOfItemAtPath: (OFString*)path permissions: (mode_t)permissions; #endif #ifdef OF_HAVE_CHOWN +/*! + * @brief Get the owner and group of the specified item. + * + * @param owner A pointer to an OFString* to store the owner, or nil + * @param group A pointer to an OFString* to store the group, or nil + * @param path The path to the item whose owner and group should be retrieved + */ +- (void)getOwner: (OFString *__autoreleasing _Nonnull *_Nullable)owner + group: (OFString *__autoreleasing _Nonnull *_Nullable)group + ofItemAtPath: (OFString*)path; + /*! * @brief Changes the owner of an item. * * This method is not available on some systems, most notably Windows. *