Gilgame.SEWorkbench.ViewModels.ProjectItemViewModel.VerifyPath C# (CSharp) Method

VerifyPath() public method

public VerifyPath ( ) : void
return void
        public void VerifyPath()
        {
            switch (_Model.Type)
            {
                case ProjectItemType.Blueprints:
                    FileMissing = (!Directory.Exists(_Model.Path) || !File.Exists(Blueprint));
                    break;

                case ProjectItemType.Collection:
                case ProjectItemType.Folder:
                    FileMissing = !Directory.Exists(_Model.Path);
                    break;

                case ProjectItemType.File:
                case ProjectItemType.Reference:
                    FileMissing = !File.Exists(_Model.Path);
                    break;
            }
            foreach (ProjectItemViewModel child in Children)
            {
                child.VerifyPath();
            }
        }