Add graphviz generation and visualization
This requires graphviz to be installed on your machine. If you run the command with sudo, it will create the files with the original user ownership to make it easier to remove them without root.
This commit is contained in:
4
file.go
4
file.go
@@ -55,6 +55,10 @@ func NewFileType(name, path, content, state string) *FileType {
|
||||
}
|
||||
}
|
||||
|
||||
func (obj *FileType) GetType() string {
|
||||
return "File"
|
||||
}
|
||||
|
||||
// File watcher for files and directories
|
||||
// Modify with caution, probably important to write some test cases first!
|
||||
// obj.Path: file or directory
|
||||
|
||||
Reference in New Issue
Block a user