| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
This method allows us to track old path and new path of the file which
is being renamed/moved.
modified: combox/silo.py
modified: tests/silo_test.py
|
|
|
|
|
|
| |
In NodeDirMonitor's on_moved method, when we detect that a shard is
modified, we push the info, about the shard modification, to silo from
the on_moved for the OS X platform.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
For obvious reasons, We are using os.makedirs to create node paths if
it is not already created.
|
|
|
|
|
|
|
|
|
|
| |
The unit test that simulates the behavior of Google Drive for file
modification runs successfully, but I need to test this fix, with the
Google Drive client monitoring a node directory, to confirm if the fix
actually works.
modified: combox/events.py
modified: tests/events_test.py
|
| |
|
| |
|
| |
|
|
|
|
| |
modified: combox/events.py
|
|
|
|
| |
modded combox/events.py
|
| |
|
| |
|
| |
|
|
|
|
|
| |
modified: TODO.org
modified: combox/events.py
|
|
|
|
|
| |
modified: TODO.org
modified: combox/events.py
|
|
|
|
|
| |
modified: combox/file.py
modified: tests/file_test.py
|
|
|
|
|
|
|
|
| |
Looks like pickledb requires `simplejson'.
modded:
README.md
setup.py
|
|
|
|
|
|
|
| |
directory is given.
modified: combox/config.py
modified: tests/utils.py
|
|
|
|
|
| |
Now, the first node monitor does the housekeeping thing on the node
directories.
|
| |
|
|
|
|
| |
modified: combox/cbox.py
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
functionality.
- Now the housekeep method re-contructs the files, whose shards
were created when combox was off, in the combox directory only if
all of its shards have made it to the respective node
directories.
- If it finds only some of all the shards of a file missing, it
stores this information in the `file_created' dict inside the
silo.
- tests.events_tests.TestEvents.test_NDM_housekeep_create tests the
're-construct file' functionality of
combox.events.NodeDirMonitor.housekeep method.
modified: combox/events.py
modified: tests/events_test.py
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Now the housekeep method deletes the file in the combox
directory only if all of its shards are missing in the
respective node directories -- meaning it was deleted on another
computer (running combox).
- If it finds only some of all the shards of a file missing, it
stores this information in the `file_deleted' dict inside
the silo.
- tests.events_tests.TestEvents.test_NDM_housekeep_delete tests
the delete functionality of
combox.events.NodeDirMonitor.housekeep method.
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
|
|
|
| |
- Updated tests as usual.
modified: combox/silo.py
modified: tests/silo_test.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-------
Theory: Productivity is directly proportional to the slowness of your
Internet connection -- slower it is better you are.
Proof of theory: Joey Hess -- http://joeyh.name (lives in a cabin, has
a dialup connection to the Internet).
Hence, proved.
-------
I did this zarking rewrite with the Internet zarking turned off.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Now the node monitor waits for all shards of the file, which was
moved/renamed on a remote computer, to get moved/renamed on this
computer, before it finally reconstructs the moved/renamed file
in the combox directory on this computer.
- Updated the tests for on_moved method at
tests.events_test.TestEvents.test_NDM_onmoved method.
modified: combox/events.py
modified: tests/events_test.py
|
|
|
|
| |
"combox.events.NodeDirMonitor.on_moved method".
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Now the the node monitor waits for all shards of the file, which
was deleted on a remote computer, to get deleted on this computer,
before it finally deletes the respective file in the combox
directory.
- Tests for it is at tests.events_test.TestEvents.test_NDM_ondeleted
method.
modified: combox/events.py
modified: tests/events_test.py
Did some of this while listening to Cat Stevens' (Yusuf):
- Just Another Night
- Wild World
- Father and son (*)
- Peace train
- Moonshadow (*)
|
| |
|
|
|
|
| |
combox.events.NodeDirMonitor.on_deleted method
|
| |
|
|
|
|
|
|
|
| |
we're using os.path.expanduser instead of os.getenv('HOME').
modified: combox/cbox.py
modified: combox/config.py
|
| |
|
|
|
|
|
| |
Registered the first combox bug found by someone other than the one
writing combox -- Dr. Green.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Now the the node monitor waits for all shards of the file,
which was modified on a remote computer, to arrive on this
computer, before it re-constructs the file into the respective
location in the combox directory.
- Tests for it is at
tests.events_test.TestEvents.test_NDM_onmodified method.
modified: combox/events.py
modified: tests/events_test.py
Part of this was done while listening to Avril's "Complicated" ; I
think this is the only modern Pop song which I like.
|
|
|
|
|
|
|
| |
this computer, its info is removed from the 'file_created' dictionary in the silo.
modified: combox/events.py
modified: tests/events_test.py
|