On Monday, July 10, 2017 at 2:31:21 PM UTC-5, Edward K. Ream wrote:

> the real need is a proper docstring

json is not python it's much pickier:

- Comments not allowed!
- Single quotes not allowed!
- Backspaces not allowed!
- Commas at the end of lists not allowed.

json.loads *does *accept this, in the body text of an @data ftp node:

[
    ["user-name", "host-name", "password"],
    ["C:/leo.repo/leo-editor/README.MD"],
    ["C:/leo.repo/leo-editor/INSTALL.TXT"]
]

As shown, the first sub-list describes the server.  All other sub-lists 
describe files to be uploaded.  The present code requires items of the form:

    [path, time1]

or

    [path, time1, time2]

Imo, a bare path should also be allowed:

   [path]

The idea is that the file will be written unless its modification time 
matches time time2, with time2 defaulting to -1.  Perhaps should be changed.

That's what I have so far.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to