Skip to content

Commit aaf1869

Browse files
committed
active_folder getter and setter added
1 parent 6470214 commit aaf1869

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Client.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,25 @@ public function openFolder(string $folder_path, bool $force_select = false): arr
660660
return $this->connection->selectFolder($folder_path)->validatedData();
661661
}
662662

663+
/**
664+
* Set active folder
665+
* @param string|null $folder_path
666+
*
667+
* @return void
668+
*/
669+
public function setActiveFolder(?string $folder_path = null): void {
670+
$this->active_folder = $folder_path;
671+
}
672+
673+
/**
674+
* Get active folder
675+
*
676+
* @return string|null
677+
*/
678+
public function getActiveFolder(): ?string {
679+
return $this->active_folder;
680+
}
681+
663682
/**
664683
* Create a new Folder
665684
* @param string $folder_path

0 commit comments

Comments
 (0)