package com.github.aureliano.achmed.os.fs;

import com.github.aureliano.achmed.resources.properties.FileProperties;

public class PosixFileProvider implements IFileProvider {

	private FileProperties properties;
	
	public PosixFileProvider() {
		super();
	}

	@Override
	public void setFileMode() {
		throw new UnsupportedOperationException("Not implemented yet.");
	}

	@Override
	public void setFileOwner() {
		throw new UnsupportedOperationException("Not implemented yet.");
	}

	@Override
	public void copyFile() {
		throw new UnsupportedOperationException("Not implemented yet.");
	}

	@Override
	public void copyFolder() {
		throw new UnsupportedOperationException("Not implemented yet.");
	}

	@Override
	public void setFileProperties(FileProperties properties) {
		this.properties = properties;
	}

	@Override
	public FileProperties getFileProperties() {
		return this.properties;
	}
}
@@ -37,16 +37,202 @@
 os.fs;%0A%0A
+import com.github.aureliano.achmed.command.CommandFacade;%0Aimport com.github.aureliano.achmed.command.CommandResponse;%0Aimport com.github.aureliano.achmed.exception.FileResourceException;%0A
 import c
@@ -484,72 +484,195 @@
 %7B%0A%09%09
-throw new UnsupportedOperationException(%22Not implemented yet.%22);
+CommandResponse res = CommandFacade.executeCommand(%0A%09%09%09%22chmod%22, this.properties.getMode(), this.properties.getPath());%0A%09%09%0A%09%09if (!res.isOK()) %7B%0A%09%09%09throw new FileResourceException(res);%0A%09%09%7D
 %0A%09%7D%0A

Implement set file mode.