You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In any case, the behaviour may need to be revisited. It would be more useful / intuitive if the move command could move AND rename a folder, in which case it would be more like the linux mv. The behaviour would depend on the presence of a trailing /. If a trailing / is provided, the folder is moved to the specified parent. If none provided, then the folder is moved and renamed.
sasjs folder move <sourcefolder> <targetfolder>
To enable automated testing, we should also create a sasjs folder list command, which will list all the immediate children of a folder (and their types).
Definition of done:
sasjs folder move /Public/example1 /Public/example2 will rename example1 to example2 (unless example2 exists, in which case it will fail)
sasjs folder move /Public/nested/folder /Public/ will move folder to /Public/folder
the presence of a leading/ determines whether to prepend the path with the value of appLoc
sasjs folder list command created & documented
we have automated tests to confirm the above behaviours
The text was updated successfully, but these errors were encountered:
There is a bug in
sasjs folder move
The result was:
In any case, the behaviour may need to be revisited. It would be more useful / intuitive if the move command could move AND rename a folder, in which case it would be more like the linux
mv
. The behaviour would depend on the presence of a trailing/
. If a trailing/
is provided, the folder is moved to the specified parent. If none provided, then the folder is moved and renamed.sasjs folder move <sourcefolder> <targetfolder>
To enable automated testing, we should also create a
sasjs folder list
command, which will list all the immediate children of a folder (and their types).Definition of done:
sasjs folder move /Public/example1 /Public/example2
will rename example1 to example2 (unless example2 exists, in which case it will fail)sasjs folder move /Public/nested/folder /Public/
will movefolder
to/Public/folder
/
determines whether to prepend the path with the value ofappLoc
sasjs folder list
command created & documentedThe text was updated successfully, but these errors were encountered: