cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] Streaming Bulk Import does not import files/folders starting with dot

sunnysharma
Champ in-the-making
Champ in-the-making
I am using Streaming Bulk Import for Alfresco Community version 5.0.a. It seems that it is not importing the files and folders (source directory on a local drive) whose name starts with dot(.). It does scan files (name starting with .) and reports in scanned stats but does not import them in Alfresco repository. Similarly it does scan folders (name starting with .) but does not import these folders in Alfresco. Also it does not scan the files inside such folders.

Is it some bug or Bulk import is designed in such a way only?
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
I think it is because of constrains on "cm:name" property of alfresco according to which name of contents cannot start with special characters as it will create issues in indexing. That is the reason bulk import is not importing those folders.

kaynezhang
World-Class Innovator
World-Class Innovator
Bulk Import use a list of import filters to filters out directory and files from the import source directory .By default following files and directories are filtered out:

    * all hidden files (note: the definition of "hidden" depends on the OS - see http://download.oracle.com/javase/6/docs/api/java/io/File.html#isHidden() for details).
    * all files that begin with a "." (this is for the benefit of those on Windows - on Unix-like OSes these should have been filtered by the hidden file filter already).

You can modify this behaviour by editing

${TOMCAT_ROOT}/webapps/alfresco/WEB-INF/lib/alfresco-repository-5.0.b-SNAPSHOT.jar!/alfresco/bulk-import-context.xml

Thanks for pointing it out. It worked. Smiley Happy