package CloudStore::MD5sum;
use warnings;
use strict;

use Carp qw(confess carp);
use Data::Dump qw(dump);
use File::ExtAttr;

sub md5_get {
	my ( $self, $path ) = @_;
	my $md5 = File::ExtAttr::_getfattr( $path, 'md5' );
	warn "## md5_get $path $md5\n";
	return $md5;
}

sub md5_set {
	my ( $self, $path, $md5 ) = @_;
	File::ExtAttr::_setfattr( $path, md5 => $md5 );
	warn "## md5_set $path $md5\n";
	return $md5;
}

1;
