Ejemplo n.º 1
0
    private bool CheckIfNameIsValid(string name)
    {
        if (string.IsNullOrWhiteSpace(name))
        {
            return(false);
        }

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

        return(!_nodeService.CheckIfExists(newFullPath));
    }
Ejemplo n.º 2
0
    private bool CheckIfNameIsValid(string name)
    {
        if (string.IsNullOrWhiteSpace(name))
        {
            return(false);
        }

        var fullPath = GetFullPath();

        return(!_nodeService.CheckIfExists(fullPath));
    }
Ejemplo n.º 3
0
 private bool CheckIfExists(string nodePath) => _nodeService.CheckIfExists(nodePath);
Ejemplo n.º 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);