Code/Framework/AzFramework/AzFramework/Archive/NestedArchive.cpp
int NestedArchive::RemoveDir(AZStd::string_view szRelativePath)
    {
        if (m_nFlags & FLAGS_READ_ONLY)
        {
            return ZipDir::ZD_ERROR_INVALID_CALL;
        }

        AZ::IO::FixedMaxPathString fullPath = AdjustPath(szRelativePath);
        if (fullPath.empty())
        {
            return ZipDir::ZD_ERROR_INVALID_PATH;
        }
        return m_pCache->RemoveDir(fullPath);
    }
//////////////////////////////////////////////////////////////////////////
// deletes the directory, with all its descendants (files and subdirs)
deletes the directory, with all its descendants (files and subdirs)
deletes the directory with all its descendants ( files and subdirs )
int NestedArchive::RemoveDir(AZStd::string_view szRelativePath)
    {
        if (m_nFlags & FLAGS_READ_ONLY)
        {
            return ZipDir::ZD_ERROR_INVALID_CALL;
        }
        AZ::IO::FixedMaxPathString fullPath = AdjustPath(szRelativePath);
        if (fullPath.empty())
        {
            return ZipDir::ZD_ERROR_INVALID_PATH;
        }
        return m_pCache->RemoveDir(fullPath);
    }
int NestedArchive :: RemoveDir ( AZStd :: string_view szRelativePath ) { if ( m_nFlags & FLAGS_READ_ONLY ) { return ZipDir :: ZD_ERROR_INVALID_CALL ; } AZ :: IO :: FixedMaxPathString fullPath = AdjustPath ( szRelativePath ) ; if ( fullPath . empty ( ) ) { return ZipDir :: ZD_ERROR_INVALID_PATH ; } return m_pCache -> RemoveDir ( fullPath ) ; }
deletes the directory, with all its descendants (files and subdirs)
deletes the directory with all its descendants ( files and subdirs )