Plugin_Refactoring_Rope.RefactoringRope.FileSystemCommands

Module implementing file system commands for rope.

Classes

e4FileSystemCommands Class implementing file system commands for rope.

Functions

None


e4FileSystemCommands

Class implementing file system commands for rope.

Derived from

object

Methods

e4FileSystemCommands Constructor
create_file Public method called by rope to create a new file.
create_folder Public method called by rope to create a new directory.
move Public method called by rope to rename a file or directory.
remove Public method called by rope to remove a file or directory.
write Public method called by rope to write data to a file.

e4FileSystemCommands (Constructor)

e4FileSystemCommands(project)

Constructor

project
reference to the eric4 project object (Project.Project)

e4FileSystemCommands.create_file

create_file(path)

Public method called by rope to create a new file.

path
new filename (string)

e4FileSystemCommands.create_folder

create_folder(path)

Public method called by rope to create a new directory.

path
new directory (string)

e4FileSystemCommands.move

move(path, new_location)

Public method called by rope to rename a file or directory.

path
old file/directory name (string)
new_location
new file/directory name (string)

e4FileSystemCommands.remove

remove(path)

Public method called by rope to remove a file or directory.

path
name of file/directory to remove (string)

e4FileSystemCommands.write

write(path, data)

Public method called by rope to write data to a file.

path
filename of file to write to (string)
data
dat to be written
Up