Opened 15 years ago

Closed 15 years ago

#1376 closed enhancement (fixed)

Remove the working directory (in the BASE file system) that Base1PluginExecuter creates if it is empty

Reported by: Jari Häkkinen Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 2.15
Component: coreplugins Version:
Keywords: Cc:

Description

The directories should only be created if needed. All BASE1 plug-ins may generate files even plug-ins that only transform a matrix to another matrix. The reason for this is that there is always an option to save stdout.txt and stdin.txt

Change History (5)

comment:1 by Nicklas Nordborg, 15 years ago

I don't understand the request... The directory is always needed, since the stdin.txt file must have a place to go... Do you mean that the directory should be removed if the plug-in doesn't generate any extra files and the user doesn't want to keep 'stdin.txt' and 'stdout.txt'?

in reply to:  1 comment:2 by Jari Häkkinen, 15 years ago

Replying to nicklas:

I don't understand the request... The directory is always needed, since the stdin.txt file must have a place to go...

Hm, if I understand you correctly, the Base1 plug-in executer saves stdin.txt in the BASE file system, not in a temporary directory outside BASE during plug-in execution? Is this wise, my plug-ins stores all temporary data in the operating system file structure? Changing storage of temporary files could maybe be targeted as a part of ticket:741?

Do you mean that the directory should be removed if the plug-in doesn't generate any extra files and the user doesn't want to keep 'stdin.txt' and 'stdout.txt'?

I'd like the directory to be removed if there is no files created for long time storage, the directories get cluttered and information finding becomes unnecessary awkward.

comment:3 by Nicklas Nordborg, 15 years ago

Milestone: BASE 2.15
Summary: Base1PluginExecuter creates result directories even if no result files are generatedRemove the working directory (in the BASE file system) that Base1PluginExecuter creates if it is empty

Before starting the BASE 1 plug-in the 'stdin.txt' file is created both in the BASE file system and in the working directory of the plug-in. However, it has not always been this way. Originally, nothing was created in the BASE system until after successful execution of the plug-in. The problem with that approach was that debugging was a pain since if something went wrong nothing was left that you could look at. No 'stdin.txt', no 'stdout.txt'.

So the change you are after is that the directory in the BASE file system should also be deleted if the user doesn't want to keep 'stdin.txt' or 'stdout.txt' and if no other files has been created by the plug-in.

comment:4 by Nicklas Nordborg, 15 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:5 by Nicklas Nordborg, 15 years ago

Resolution: fixed
Status: assignedclosed

(In [5169]) Fixes #1376: Remove the working directory (in the BASE file system) that Base1PluginExecuter creates if it is empty

Note: See TracTickets for help on using tickets.