Skip to content

Conversation

@ArceDanielShok
Copy link
Contributor

This Pull Request introduces a new method in the addon to retrieve the registered synchronization root folders and exposes it as a static function to facilitate its use.

  • Creation of the getRegisteredSyncRoots method:
    • The getRegisteredSyncRoots method has been implemented in the addon. This method allows retrieving a list of all synchronization root folders that are currently registered in the system.
  • Exposure as a static function:
    • The getRegisteredSyncRoots method has been exposed as a static function. This allows accessing the method directly from the addon class, without the need to instantiate an addon object, which simplifies its use in different parts of the application.

}

// GetRegisteredSyncRootsWrapper
napi_property_descriptor getRegisteredSyncRootsRootDesc = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this write well? SyncRootsRoot?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm it's true that it looks weird but all wrappers have the RootDesc at the end

throw std::runtime_error("Error creando la cadena id");
napi_set_named_property(env, jsObj, "id", napiId);

// Propiedad "path"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Place excpetions and comments in english

status = napi_create_object(env, &jsObj);
if (status != napi_ok)
throw std::runtime_error("Error creando el objeto");

Copy link
Contributor

@dajimenezriv-internxt dajimenezriv-internxt Mar 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here I assume it should be // Property "id"

@ArceDanielShok ArceDanielShok self-assigned this Mar 31, 2025
@dajimenezriv-internxt dajimenezriv-internxt merged commit 799e844 into master Apr 1, 2025
2 checks passed
@dajimenezriv-internxt dajimenezriv-internxt deleted the static-addon branch April 1, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants