Arc/Warc mounter
Created: 2011-11-15 10:48:54
Last updated: 2011-11-15 11:17:23
No description has been set
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Inputs (2)
Name |
Description |
dir |
The dir to mount the file in. Must be empty
|
warcfile |
the warc/arc file to mount.
|
Processors (4)
Name |
Type |
Description |
mountArchive |
externaltool |
|
List_Files |
localworker |
Scriptlist(dir){
List files = new ArrayList();
File[] fileObjList = dir.listFiles();
for (int i = 0; i < fileObjList.length; i++) {
if (fileObjList[i].isDirectory()){
files.addAll(list(fileObjList[i]));
}
else {
files.add(fileObjList[i].getAbsolutePath());
}
}
return files;
}
if (directory == null || directory.equals("")) {
throw new RuntimeException(
"The 'directory' parameter cannot be null. Please enter a valid file directory.");
}
File dirObj = new File(directory);
if (!dirObj.exists()) {
throw new RuntimeException("The 'directory' parameter specified:" + directory
+ "does not exist. Please enter a valid file directory.");
}
filelist = list(dirObj);
|
unmount |
externaltool |
|
Tool |
beanshell |
|
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
Tool |
|
files
|
results
|
Outputs (7)
Name |
Description |
mounter_err |
|
mounter_out |
|
unmount_err |
|
unmount_out |
|
dir_initial |
|
results |
|
filelist |
|
Datalinks (12)
Source |
Sink |
dir |
mountArchive:dir |
warcfile |
mountArchive:warc |
dir |
List_Files:directory |
dir |
unmount:dir |
List_Files:filelist |
Tool:files |
mountArchive:STDERR |
mounter_err |
mountArchive:STDOUT |
mounter_out |
unmount:STDERR |
unmount_err |
unmount:STDOUT |
unmount_out |
dir |
dir_initial |
Tool:results |
results |
List_Files:filelist |
filelist |
Coordinations (2)
Controller |
Target |
Tool |
unmount |
mountArchive |
List_Files |
Uploader
License
All versions of this Workflow are
licensed under:
Version 2 (latest)
(of 2)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (1)
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment