Buggy code:
public class HostFileProfile extends FileProfile { private static final String TAG = "HOST" ; private FileManager mFileManager ; private SimpleDateFormat mDataFormat = new SimpleDateFormat ( "yyyy-MM-dd<seq2seq4repair_space>HH:mm:ss" , Locale . getDefault ( ) ) ; public HostFileProfile ( final FileManager fileMgr ) { } @ Override protected boolean onGetReceive ( final Intent request , final Intent response , final String serviceId , final String path ) { } @ Override protected boolean onGetList ( final Intent request , final Intent response , final String serviceId , final String path , final String mimeType , final String order , final Integer offset , final Integer limit ) { } protected ArrayList < HostFileProfile . FileAttribute > sortFilelist ( final String order , final ArrayList < HostFileProfile . FileAttribute > filelist ) { } protected ArrayList < HostFileProfile . FileAttribute > setArryList ( final File [ ] respFileList , final ArrayList < HostFileProfile . FileAttribute > filelist ) { } @ Override protected boolean onPostSend ( final Intent request , final Intent response , final String serviceId , final String path , final String mimeType , final byte [ ] data ) { } @ Override protected boolean onDeleteRemove ( final Intent request , final Intent response , final String serviceId , final String path ) { } @ Override protected boolean onPostMkdir ( final Intent request , final Intent response , final String serviceId , final String path ) { if ( serviceId == null ) { createEmptyServiceId ( response ) ; } else if ( ! ( checkServiceId ( serviceId ) ) ) { createNotFoundService ( response ) ; } else if ( path == null ) { MessageUtils . setInvalidRequestParameterError ( response ) ; } else { File mBaseDir = mFileManager . getBasePath ( ) ; File mMakeDir = new File ( mBaseDir , path ) ; if ( mMakeDir . isDirectory ( ) ) { setResult ( response , RESULT_ERROR ) ; MessageUtils . setInvalidRequestParameterError ( response , ( ( "can<seq2seq4repair_space>not<seq2seq4repair_space>make<seq2seq4repair_space>dir,<seq2seq4repair_space>\"" + mMakeDir ) + "\"<seq2seq4repair_space>already<seq2seq4repair_space>exist." ) ) ; } else { <START_BUG> boolean isMakeDir = mMakeDir . mkdir ( ) ; <END_BUG> if ( isMakeDir ) { setResult ( response , RESULT_OK ) ; } else { setResult ( response , RESULT_ERROR ) ; MessageUtils . setInvalidRequestParameterError ( response , ( "can<seq2seq4repair_space>not<seq2seq4repair_space>make<seq2seq4repair_space>dir<seq2seq4repair_space>:" + mMakeDir ) ) ; } } } return true ; } @ Override protected boolean onDeleteRmdir ( final Intent request , final Intent response , final String serviceId , final String path , final boolean force ) { } protected Bundle addResponseParamToArray ( final HostFileProfile . FileAttribute fa , final Bundle respParam ) { } public String getMIMEType ( final String path ) { } private boolean checkServiceId ( final String serviceId ) { } private void createEmptyServiceId ( final Intent response ) { } private void createNotFoundService ( final Intent response ) { } public class FileAttribute { private String mPath ; private String mName ; private String mMimeType ; private int mFileType ; private long mSize ; private String mUpdateDate ; public FileAttribute ( final String path , final String name , final String mimetype , final int filetype , final long size , final String date ) { } public String getPath ( ) { } public String getName ( ) { } public String getMimeType ( ) { } public int getFileType ( ) { } public long getFileSize ( ) { } public String getUpdateDate ( ) { } } }

Fix:
boolean isMakeDir = mMakeDir . mkdirs ( ) ;