private bool CheckIfNameIsValid(string name)
    {
        if (string.IsNullOrWhiteSpace(name))
        {
            return(false);
        }

        var newFullPath = _pathService.Combine(_directoryPath, name);

        return(!_nodeService.CheckIfExists(newFullPath));
    }
    private bool CheckIfNameIsValid(string name)
    {
        if (string.IsNullOrWhiteSpace(name))
        {
            return(false);
        }

        var fullPath = GetFullPath();

        return(!_nodeService.CheckIfExists(fullPath));
    }
Beispiel #3
0
 private bool CheckIfExists(string nodePath) => _nodeService.CheckIfExists(nodePath);
Beispiel #4
0
    private bool IsNameAlreadyInUse(string name, string directory)
    {
        var fullPath = _pathService.Combine(directory, name);

        return(_nodeService.CheckIfExists(fullPath));
    }
 private bool CheckIfPathIsValid(string path) =>
 !string.IsNullOrWhiteSpace(path) &&
 !_nodeService.CheckIfExists(path);