Jump to content
IgorSavkic

NodeJS file utils and native app

Recommended Posts

Has someone tried to make SMS app which uses Node to access native file system, any hints or examples on how to do that?

Also have someone tried building native apps with SMS, I see there's a nativefier and in Node it seems possible to access even WinApi, that opens a lot of possibilities.

 

Share this post


Link to post
Share on other sites

yes to a node server with a back-end mysql db, no to a node server accessing the native file system

I have these links on my system :

node socket server with mysql db
https://forums.smartmobilestudio.com/topic/4652-node-ground-zero/?tab=comments#comment-23125

file enumeration
https://jonlennartaasenden.wordpress.com/?s=node.js

 

I've done some conversions using nativefier, works ok

I'm racking my brains what the name is of this other native library I've used once, but it eludes me at present :(

 

 

Share this post


Link to post
Share on other sites

Here's my example:

  Files := TW3NodeStorageDevice.Create(nil);
  Files.Mount(nil,
    procedure (Sender: TW3StorageDevice; Success: boolean)
    begin
      if Success then
        Writeln(PBNRS_FILE_SYSTEM_MOUNTED)
      else
        Writeln(Format(PBNRS_ERROR_MOUNTING_FILE_SYSTEM, [Files.LastError]));
    end
  );

And reading a file:

      Files.Load(PBNConfig.HelpFile,
        procedure (Sender: TW3StorageDevice; Filename: string; Data: TStream; Success: boolean)
        begin
          if Success then
          begin
            ...
          end
          else
            ...
        end

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×