labblouin.IO module

Different shortcut functions for dealing with file systems.

IO Python Library / 2012 / Alex Safatli

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

E-mail: safatli@cs.dal.ca Dependencies: -

labblouin.IO.copyFile(origin, target)[source]

Copies a file. Returns path.

labblouin.IO.getFileName(path)[source]

Returns a filename of a given path.

labblouin.IO.getFilesInFolder(folder, ext)[source]

Returns a list of all full file paths for a given extension in a given folder.

labblouin.IO.getFolderName(path)[source]

Returns the directory name of a given path.

labblouin.IO.makeFolder(folder_name)[source]

Makes a folder (if does not already exist). Returns path.

labblouin.IO.moveFile(origin, target)[source]

Moves a file. Returns path.

labblouin.IO.removeFile(origin)[source]

Removes a file.

Previous topic

labblouin.FASTAnet module

Next topic

labblouin.MATT2GM module

This Page