Is File Accessed Between


Node Information
Checks the specified file, if it was last accessed between the two specified dates TRUE will be returned, else FALSE will be returned.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
File IN String ONE FALSE FALSE
From IN DateTime ONE FALSE FALSE
To IN DateTime ONE FALSE FALSE
Result OUT Boolean MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.IO.FileInfo
{
    [IsNode("Is Accessed Between")]
    public class AccessedBetween : Node
    {
        Port path = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "File");
        Port from = new Port(PortType.IN, typeof(DateTime), AcceptsLinks.ONE, "From");
        Port to = new Port(PortType.IN, typeof(DateTime), AcceptsLinks.ONE, "To");
        Port reslt = new Port(PortType.OUT, typeof(bool), AcceptsLinks.MULTIPLE, "Result");
        public AccessedBetween()
        {
            this.Name = "Is File Accessed Between";
            this.NodeType = KGraph.NodeType.Function;
            this.ReturnType = typeof(bool);
            AddPort(path);
            AddPort(from);
            AddPort(to);
            AddPort(reslt);
            Information = "Checks the specified file, if it was last accessed between the two specified dates TRUE will be returned, else FALSE will be returned.";
        }
        public override string Code()
        {
            return "return KIO.KFileInfo.LastAccessedBetween(" + GetValue(path) + "," + GetValue(from) + "," + GetValue(to) + ");";
        }
    }
}