@Override public boolean delete() { try { QueryHandler.instanceOf().clone(Context.getFiles()).removeFile(filename); } catch (Exception ex) { Log.Debug(ex); } return super.delete(); }
/** * Fetches the physical file from db * * @return */ public synchronized File getFile() { if (file == null) { try { file = QueryHandler.instanceOf() .clone(Context.getFiles()) .retrieveFile(filename, new File(FileDirectoryHandler.getTempDir() + getCname())); } catch (Exception e) { Log.Debug(e); } } return file; }
public FileToItem() { setContext(Context.getFilesToItems()); }