code: def validate_filepath(file_path, platform=None, min_len=1, max_len=None):
      
  
      FilePathSanitizer(platform=platform, min_len=min_len, max_len=max_len).validate(file_path)
docs: Verifying whether the ``file_path`` is a valid file path or not.
  
      Args:
          file_path (str):
              File path to validate.
          platform (str, optional):
              .. include:: platform.txt
          min_len (int, optional):
              Minimum length of the ``file_path``. The value must be greater or equal to one.
              Defaults to ``1``.
          max_len (int, optional):
              Maximum length of the ``file_path`` length. If the value is |None|,
              in the default, automatically determined by the ``platform``:
  
                  - ``Linux``: 4096
                  - ``macOS``: 1024
                  - ``Windows``: 260
  
      Raises:
          NullNameError:
              If the ``file_path`` is empty.
          InvalidCharError:
              If the ``file_path`` includes invalid char(s):
              |invalid_file_path_chars|.
              The following characters are also invalid for Windows platform:
              |invalid_win_file_path_chars|
          InvalidLengthError:
              If the ``file_path`` is longer than ``max_len`` characters.
  
      Example:
          :ref:`example-validate-file-path`
  
      See Also:
          `Naming Files, Paths, and Namespaces (Windows)
          <https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx>`__