[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [flux-dev] Status update
|
Hi!
Can you try to move file from outside into this directory, replacing original one?
For example: touch ../file; mv ../file file;
Also, you can try to move file from other partition, for example flash drive.
I had noticed, if I move files on the same partition, then I get MOVE_TO event;
however on different partitions my original file is deleted, created new one, and content
MOVE_TO case cannot be handled by flux, because resource already exists. I am trying to figure out how to fix this.
The first idea is to ignore if resource exists or not on node.js side as proposed in patch. What do you think?
Fjodor
diff --git a/node.server/repository-message-api.js b/node.server/repository-message-api.js
index 5d8222b..19b0638 100644
--- a/node.server/repository-message-api.js
+++ b/node.server/repository-message-api.js
@@ -236,7 +236,7 @@ MessagesRepository.prototype.resourceCreated = function(data) {
var type = data.type;
this.repository.hasResource(username, projectName, resource, function(err, resourceExists) {
- if (err === null && !resourceExists) {
+ if (err === null ) {
this.socket.emit('getResourceRequest', {
'callback_id' : 0,
'username' : username,