Is File Accessed After


Node Information
Checks the specified file, if it was last accessed after the specified date 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
Date IN DateTime ONE FALSE FALSE
Result OUT Boolean MULTIPLE FALSE FALSE

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