CodeCommit / Client / exceptions / FileNameConflictsWithDirectoryNameException

FileNameConflictsWithDirectoryNameException#

class CodeCommit.Client.exceptions.FileNameConflictsWithDirectoryNameException#

A file cannot be added to the repository because the specified file name has the same name as a directory in this repository. Either provide another name for the file, or add the file in a directory that does not match the file name.

Example

try:
  ...
except client.exceptions.FileNameConflictsWithDirectoryNameException as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{}

Structure

  • (dict) –

    A file cannot be added to the repository because the specified file name has the same name as a directory in this repository. Either provide another name for the file, or add the file in a directory that does not match the file name.

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.