Source language: Translate to:

File Synchronizer

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

File Synchronizer

Postby elrad » Sat Mar 02, 2013 10:13 pm

Hello All!
I'm thinking about the creation of small app which lets user synchronize the files between the computer and a music player or book reader as an example.
It is basically synchronizing between two or more folders considering the folder on a PC as a source.

Can anyone help me please if this is possible to create such app using Neobook?

Thanks in Advance,
Elrad
User avatar
elrad
 
Posts: 27
Joined: Sat Jul 18, 2009 7:20 am
Location: Azerbaijan

Re: File Synchronizer

Postby Scherzkeks » Sun Mar 03, 2013 3:21 am

Neobook is able to create such a application.

there are several ways how it could work.
In one-way file synchronization, updated files are copied from a 'source' location to one or more 'target' locations, but no files are copied back to the source location.
In two-way file synchronization, updated files are copied in both directions, usually with the purpose of keeping the two locations identical to each other

Conflict detection where a file has been modified on one/both sources.
For conflict detection, the synchronization software needs to keep a database of the synchronized files.
Open Files Support when copying data files that are in-use.

PC <> DEVICE
PC: Check for Files, relative Path, get Filesize, MD5 Hash & Filedate, and more if needed
DEVICE: Check for Files, relative Path, get Filesize, MD5 Hash & Filedate, and more if needed

Compare both if they exists on each place, copy/move/delete depending on the settings you defined.
User avatar
Scherzkeks
 
Posts: 79
Joined: Mon Apr 04, 2005 3:04 am
Location: Switzerland

Re: File Synchronizer

Postby dec » Sun Mar 03, 2013 4:46 am

Hello to all,

Scherzkeks wrote:PC: Check for Files, relative Path, get Filesize, MD5 Hash & Filedate, and more if needed
DEVICE: Check for Files, relative Path, get Filesize, MD5 Hash & Filedate, and more if needed


If you need to get the MD5 hash (and others SHA*) of a file or a string you can use my npHash plugin, which allow you to do it in a fast and controlled way. Hope this can help you in some manner. ;)
.
Enhance your NeoBook applications!
.
57 plugins, 1113 actions and 230 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain

Re: File Synchronizer

Postby elrad » Wed Mar 06, 2013 11:04 am

Thank you for your help, gents.
Could someone post a sample pub here, I think I'm doing something wrong :(
You can ignore MD5 / Hash.
Thanks
User avatar
elrad
 
Posts: 27
Joined: Sat Jul 18, 2009 7:20 am
Location: Azerbaijan


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 2 guests