Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some feature (rm,mv,mkdir and so on) in AlluxioFileSystem #58

Merged
merged 8 commits into from
Nov 21, 2024

Conversation

littleEast7
Copy link
Contributor

NO JIRA

Comment on lines +199 to +203
if (
not (path.startswith("file") or path.startswith("alluxiofs"))
and "///" in path
):
path = path.replace("///", "//", 1)

This comment was marked as resolved.

Comment on lines +533 to +556
def flush(self, force=False):
if self.closed:
raise ValueError("Flush on closed file")
if force and self.forced:
raise ValueError("Force flush cannot be called more than once")
if force:
self.forced = True

if self.mode not in {"wb", "ab"}:
# no-op to flush on read-mode
return

if self.offset is None:
# Initialize a multipart upload
self.offset = 0
try:
self._initiate_upload()
except Exception as e:
self.closed = True
raise e

if self._upload_chunk(final=force) is not False:
self.offset += self.buffer.seek(0, 2)
self.buffer = io.BytesIO()

This comment was marked as resolved.

@JiamingMai JiamingMai added the enhancement New feature or request label Nov 20, 2024
@JiamingMai JiamingMai self-requested a review November 20, 2024 18:16
@JiamingMai JiamingMai merged commit e3bdf53 into fsspec:main Nov 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants