push modification
This commit is contained in:
@@ -222,6 +222,7 @@ fn create_obj(name: String, content: &str) -> io::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// get the last time a blob synced with remote
|
||||
pub fn get_timestamp(path_s: String) -> Option<i64> {
|
||||
let mut obj_p = path::objects();
|
||||
|
||||
@@ -235,7 +236,7 @@ pub fn get_timestamp(path_s: String) -> Option<i64> {
|
||||
Some(Ok(line)) => {
|
||||
let mut data = line.rsplit(' ');
|
||||
if data.clone().count() >= 2 {
|
||||
Some(data.next().unwrap().parse::<i64>().unwrap())
|
||||
Some(data.nth_back(1).unwrap().parse::<i64>().unwrap())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user